Template repository to create Go projects
Before you can build and run this project, ensure you have the following installed on your machine:
- Go (version 1.23.1+)
- golangci-lint for linting
git clone git@github.com:senonide/nova.git
cd nova
go mod tidy
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
The project includes a Makefile that simplifies common tasks. Here are the available commands:
- Lint the Code Run static analysis and check the code for potential issues:
make lint
This command uses golangci-lint to perform static analysis and report any issues.
- Run Tests Execute all unit tests with the race detector enabled:
make test
- Build the Project (Debug Mode) Compile the project with debugging symbols included:
make build-debug
- Build the Project (Release Mode) Compile the project for production:
make build
- Run the Project Run the project directly:
make run