Skip to content

sdcxtech/piaotong

Repository files navigation

piaotong

GoDoc

Golang SDK for 票通

Usage

Open blue invoice

c := piaotong.New(piaotong.Config{})
resp, _ := c.OpenBlueInvoice(ctx, &piaotong.OpenBlueInvoiceRequest{})
fmt.Println(resp)

Development

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
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"
      ]