JSON-RPC client for getblock.io.
go get github.com/ofen/getblock-gopackage main
import (
    "context"
    "fmt"
    "github.com/ofen/getblock-go/eth"
)
func main() {
    ctx := context.Background()
    client := eth.New("your-api-token")
    head, err := client.BlockNumber(ctx)
    if err != nil {
        panic(err)
    }
    fmt.Println(head)
}