Service to ingest searchable data into database.
- chi : For Routing
- flag: For configurations (environment variables and command line arguments)
- logrus: For Logging
- pgx: For PostgreSQL Database
- Fork this repo
- Rename repo name
- Replace
/maknahar/go-web-skeleton/
with/<your-username>/<your-repo-name>/
in forked project.
OR duplicate the repo instead of step 1 and 2.
Pre-commit hooks for golang are used from https://github.com/dnephin/pre-commit-golang
Install pre-commit from https://pre-commit.com/#install.
For Mac User brew install pre-commit
Run pre-commit install --install-hooks
Install validate-toml from https://github.com/BurntSushi/toml/tree/master/cmd/tomlv
Install golangci-lint from https://github.com/golangci/golangci-lint#install
golangci-lint contains go-lint and go-critic and hence they are commented in yaml file.
They might not be enabled by default. To enable them, run below command.
golangci-lint linters -E gocritic
Before committing any files, the hooks mentioned in yaml will be executed.
Service uses Go Module.
If you know any open source package that you believe in must have in a Go Web Service, Please let us know.