Simple REST service is a sample project
- Go 1.15+
for check if Go is intalled, run: go version
$ go run main.go
To check if the service is running:
$ curl http://localhost:10000/promotions
$ go test ./...
$ go test -cover ./...
$ go test ./... -coverprofile=c.out && go tool cover -html=c.out
$ go get -v github.com/zimmski/go-mutesting
$ go-mutesting ./...
Dashboard: https://sonarcloud.io/dashboard?id=fdaines_simple-rest-service
To change the service version, edit the sonar.projectVersion
property from .sonarcloud.properties
file
$ go get -u github.com/fdaines/arch-go
$ arch-go