这是indexloc提供的服务,不要输入任何密码
Skip to content

fix code review

fix code review #21

Workflow file for this run

name: Unit tests
on:
push:
jobs:
lint:
name: Lint and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Format
run: diff -u <(echo -n) <(gofmt -d -s .)
- name: Vet
run: go vet ./...
- name: Lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
- name: Test
run: go test -v ./...