This kata in Go language is an updated revision of the existing one in the Emily Bache's repository.
Just fork the repository and read the file with the specifications of the code.
- Go 1.18
- Go Modules
Running the application:
$ go run texttest_fixtures.go [<number-of-days>; default: 2]
Running all tests:
$ go test ./...
Running specific tests:
$ go test <path to one file or directory> <path to another file or directory>
Running test coverage:
$ go test ./... -coverprofile=cover.out
$ go tool cover -html=cover.out
Building the application:
$ go build .
After that you can run the binary:
$ ./go-gildedrose [<number-of-days>; default: 2]