Go Training Project by devminds GmbH
This Go project is used for DevOps CI/CD and Git trainings.
The project contains an application providing a CLI to calculate the sum of two numbers:
Go training project by devminds GmbH
This Go project is used for DevOps CI/CD and Git trainings.
The project contains an application providing a CLI to calculate the sum of two numbers.
Usage:
go_training_project [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
sum Show the sum of two numbers on the console
version Print the version number of the Go Training Project
Flags:
-h, --help help for go_training_project
Use "go_training_project [command] --help" for more information about a command.├── calculate Go package containing the calculations including corresponding tests
├── cmd Go package containing the application CLI
└── docs Project documentation
Build the Go application:
go build -v ./...Check if source code is formatted properly:
gofmt -d .Run golangci-lint:
golangci-lint runNote: the golangci-lint executable is available within the devcontainer.
Run the Go tests:
go test ./...