Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickfloyd/go-kata
https://github.com/nickfloyd/go-kata
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nickfloyd/go-kata
- Owner: nickfloyd
- License: mit
- Created: 2020-08-08T06:13:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-04T03:53:23.000Z (about 4 years ago)
- Last Synced: 2024-12-17T02:08:04.523Z (about 1 month ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go personal kata
Uses the [Go (Golang) Codespaces starter template](https://github.com/codespaces-examples/go)
## Play the Kata
1. Fork the repo / or clone and branch
2. run `go test ./...`
3. Note all the tests are failing
4. Pick a section under `./src` that you want to practice (i.e. `basics.go`)
5. Write logic to get the tests to pass
6. Run the tests for the section you chose until all :white_check_mark:### Flow
In this example we'll use `basics.go` as the chosen practice section
1. Run ` go test src/basics_test.go src/basics.go`
2. Note that they all fail
3. Open `basics.go` and add code to make the tests run :white_check_mark:Note: You can also do the following if you want to run individual tests
1. Run `cd src`
2. Run ` go test -v -run TestIfStatements` (ex)