To ensure you have a successful experience working with koch
, your local system must meet these technical requirements.
This installation method removes existing Go installations, installs Go in /usr/local/go/bin/go
, and sets the environment variables.
- Go to https://golang.org/dl.
- Download the binary release that is suitable for your system.
- Follow the installation instructions.
Note: We recommend not using brew to install Go.
If using JavaScript for web services, koch
recommends and expects users to write their files in TypeScript for better safety.
To install the tsc
transpiler, please follow the official TypeScript instructions.
Git pre-commit
hooks run before any commit to the Git repository. These hooks verify that each commit passes basic formatting and linting checks.
-
Homebrew
brew install pre-commit
-
Pip package manager
pip install pre-commit
After installing the pre-commit
binary, run the following command in the base directory of the koch
repository:
pre-commit install
Now, any time git commit *
is run, the pre-commit
hooks run before the commit can be finalized.
The golangci-lint
linter runner is used in the make lint
command that is provided to developers.
To install golangci-lint
into $GOPATH/bin
, run:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
The goimports
tool is used int the make format
command taht is provided to developers.
To install goimports
using the go get
command:
go get golang.org/x/tools/cmd/goimports