Go package for the Brooklyn Integers API.
Documentation is incomplete at this time.
package main
import (
"fmt"
"github.com/aaronland/go-brooklynintegers-api"
)
func main() {
client := api.NewAPIClient()
i, _ := client.CreateInteger()
fmt.Println(i)
}
import (
"fmt"
"github.com/aaronland/go-brooklynintegers-api"
)
func main() {
client := api.NewAPIClient()
params := url.Values{}
method := "brooklyn.integers.create"
rsp, _ := client.ExecuteMethod(method, ¶ms)
i, _ := rsp.Int()
fmt.Println(i)
}
Mint one or more Brooklyn Integers.
$> ./bin/brooklynt -h
Usage of ./bin/int:
-count int
The number of Brooklyn Integers to mint (default 1)
This tool has been moved to the go-brooklynintegers-proxy package.