Categorygithub.com/blinklabs-io/kupogo
repositorypackage
0.0.0-20240106214207-23da162a95c0
Repository: https://github.com/blinklabs-io/kupogo.git
Documentation: pkg.go.dev

# README

kupogo

Kupo client in Go

Note: you should use https://github.com/SundaeSwap-finance/kugo instead

Usage

package main

import (
	"encoding/json"
	"fmt"
	"os"

	"github.com/blinklabs-io/kupogo"
)

func main() {
	client := kupogo.NewClient("https://kupo.example.com")
	matches, err := client.GetMatches("addr1...")
	if err != nil {
		fmt.Println("ERROR:", err)
		os.Exit(1)
	}
	jsonData, err := json.MarshalIndent(matches, "", "    ")
	if err != nil {
		fmt.Println("ERROR: marshal:", err)
		os.Exit(1)
	}
	fmt.Printf("matches: %s\n", jsonData)
}