v1k0d3n / porkbun

Go library for accessing the Porkdun API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Go library for accessing the Porkdun API.

License:Mozilla Public License 2.0


Languages

Language:Go 98.6%Language:Makefile 1.4%