• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H04-Jul-2021-

.gitignoreH A D04-Jul-20217

.golangci.ymlH A D04-Jul-20211.6 KiB

LICENSEH A D04-Jul-202116.3 KiB

MakefileH A D04-Jul-2021174

client.goH A D04-Jul-20214 KiB

client_test.goH A D04-Jul-20212.7 KiB

go.modH A D04-Jul-2021132

go.sumH A D04-Jul-20211.5 KiB

readme.mdH A D04-Jul-2021922

readme.md

1# Go library for accessing the freemyip.com API
2
3[![Build Status](https://github.com/nrdcg/freemyip/workflows/Main/badge.svg?branch=main)](https://github.com/nrdcg/freemyip/actions)
4[![PkgGoDev](https://pkg.go.dev/badge/github.com/nrdcg/freemyip)](https://pkg.go.dev/github.com/nrdcg/freemyip)
5[![Go Report Card](https://goreportcard.com/badge/github.com/nrdcg/freemyip)](https://goreportcard.com/report/github.com/nrdcg/freemyip)
6
7An [freemyip.com](https://freemyip.com) API client written in Go.
8
9freemyip is a Go client library for accessing the freemyip.com API.
10
11## Examples
12
13```go
14package main
15
16import (
17	"context"
18	"fmt"
19
20	"github.com/nrdcg/freemyip"
21)
22
23func main() {
24	client := freemyip.New("secret", true)
25
26	ctx := context.Background()
27
28	resp, err := client.UpdateDomain(ctx, "example", "")
29	if err != nil {
30		panic(err)
31	}
32
33	fmt.Println(resp)
34}
35```
36
37## API Documentation
38
39- [API docs](https://freemyip.com/help)
40