go-gcis is a Go client library for accessing the GCIS API.
Use go get
to download the library into your $GOPATH.
go get -u https://github.com/minchao/go-gcis
This example shows how to make a request to the GCIS API.
package main
import (
"context"
"fmt"
"github.com/minchao/go-gcis/gcis"
)
func main() {
client := gcis.NewClient()
info, _, err := client.Company.GetBasicInformation(context.Background(),
&gcis.CompanyBasicInformationInput{BusinessAccountingNO: "20828393"})
if err != nil {
panic("failed to get company basic information, " + err.Error())
}
fmt.Println("resp", info)
}
This library is distributed under the MIT license found in the LICENSE file.