Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use strings.ReplaceAll() rather than strings.Replace() with -1
Also, added a pre-commit hook. To install it: go install github.com/go-critic/go-critic/cmd/gocritic@latest go install golang.org/x/tools/cmd/goimports@latest go install golang.org/x/lint/golint@latest go install github.com/gordonklaus/ineffassign@latest pip install pre-commit pre-commit install It will then run on every `git commit` invocation. To run manually on all files: pre-commit run --all-files
- Loading branch information