/porkbun

Go library for accessing the Porkdun API.

Primary LanguageGoMozilla Public License 2.0MPL-2.0

Go library for accessing the Porkdun API

Build Status PkgGoDev Go Report Card

An Porkbun API client written in Go.

porkbun is a Go client library for accessing the Porkbun API.

Examples

package main

import (
	"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