Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nrdcg/porkbun
Go library for accessing the Porkbun API.
https://github.com/nrdcg/porkbun
api-client dns-client go golang porkdun
Last synced: 5 days ago
JSON representation
Go library for accessing the Porkbun API.
- Host: GitHub
- URL: https://github.com/nrdcg/porkbun
- Owner: nrdcg
- License: mpl-2.0
- Created: 2021-05-01T16:42:49.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-13T12:44:58.000Z (2 months ago)
- Last Synced: 2025-02-09T04:11:17.721Z (12 days ago)
- Topics: api-client, dns-client, go, golang, porkdun
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Go library for accessing the Porkbun API
[](https://github.com/nrdcg/porkbun/actions)
[](https://pkg.go.dev/github.com/nrdcg/porkbun)
[](https://goreportcard.com/report/github.com/nrdcg/porkbun)An [Porkbun](https://porkbun.com) API client written in Go.
porkbun is a Go client library for accessing the Porkbun API.
## Examples
```go
package mainimport (
"context"
"fmt""github.com/nrdcg/porkbun"
)func main() {
client := porkbun.New("secret", "key")ctx := context.Background()
yourIP, err := client.Ping(ctx)
if err != nil {
panic(err)
}fmt.Println(yourIP)
}
```## API Documentation
- [API docs](https://porkbun.com/api/json/v3/documentation)