A Collection of useful Go functions and utilities to interact with Kenny U-Pull's API.
go get github.com/jdboisvert/kenny-u-pull-go-sdk
Please refer to the examples for more information on how to use the SDK.
# install golang
brew install golang
# install the golangci linter
# more details: https://golangci-lint.run/
brew install golangci-lint
# install pre-commit
pip install pre-commit
pre-commit install
# Download all dependencies
go mod download
A number of pre-commit hooks are set up to ensure all commits meet basic code quality standards.
If one of the hooks changes a file, you will need to git add
that file and re-run git commit
before being able to continue.
All test files are named *_test.go. Github workflow automatically run the tests when code is pushed and will return a report with results when finished.
You can also run the tests locally:
go test ./...
To run the tests with coverage:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
GitHub Actions is configured to perform unit tests for all new PRs.