See slurmprocessor getting started guide.
Install Go in your system. See Go installation guide for more details.
go test .
To check formatting:
gofmt -s -l .
To check linting you'll need to install golangci-lint in your system. See golangci-lint installation guide for more details. If you already have go installed, you can run the following command to install golangci-lint:
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.1
export PATH="$PATH:$(go env GOPATH)/bin"To check linting:
golangci-lint run
Import your dependency in one of the .go files and then run:
go mod tidy