Golang SDK for 票通
Open blue invoice
c := piaotong.New(piaotong.Config{})
resp, _ := c.OpenBlueInvoice(ctx, &piaotong.OpenBlueInvoiceRequest{})
fmt.Println(resp)
Install pre-commit
# if you havn't install pre-commit on your mac
brew install pre-commit
# install pre-commit into your git hooks
pre-commit install
Install commitlint
npm install -g commitlint
npm install -g @commitlint/config-conventional
Install golangci-lint
brew install golangci/tap/golangci-lint
brew upgrade golangci/tap/golangci-lint
Add below json snappet to your vscode settings:
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
]