Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 901 Bytes

readme.md

File metadata and controls

39 lines (26 loc) · 901 Bytes

Go library for accessing the Porkbun 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