thelolagemann / go-mpos

go-mpos is an unofficial golang client for php-mpos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-mpos

GoDoc reference GitHub GitHub go.mod Go version

An unofficial PHP-MPOS API Client for go.

Getting started

Install

go get -u github.com/thelolagemann/go-mpos

Example usage

import "github.com/thelolagemann/go-mpos"

// create a new pool instance
pool := NewMiningPoolHub("API_KEY", "BASE_URL")

// get pool info
info, err := pool.PoolInfo()
if err != nil {
    // handle err
}
fmt.Printf("Pool is mining %v, with a %v%% fee\n", info.Coinname, info.Fees)

About

go-mpos is an unofficial golang client for php-mpos

License:MIT License


Languages

Language:Go 100.0%