Go Deck Builder is a project I created to accomplish two things, learn Golang and create a webserver that builds Magic the Gathering decks.
The Go Deck Builder integrates with the Scryfall API, and uses this tool to build a deck for a user based on their specified parameters.
- Install Go locally, you can visit the official Go downloads page to do that.
- Install golangci-lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- You can verify the install by running
golangci-lint --version
- You can verify the install by running
- Install pre-commit hooks to run lint checks before every commit.
- Install pre-commit:
brew install pre-commit
- Install the pre-commit hooks:
pre-commit install
- Install pre-commit:
- Before submitting a pull request run
golangci-lint run
. Lint checks are run on every pull request and will fail if there are any errors.