https://github.com/donaldkellett/learning-go-book
My adaptation of the code examples and exercises in Learning Go by Jon Bodner
https://github.com/donaldkellett/learning-go-book
cicd cloud-native devops golang
Last synced: about 1 month ago
JSON representation
My adaptation of the code examples and exercises in Learning Go by Jon Bodner
- Host: GitHub
- URL: https://github.com/donaldkellett/learning-go-book
- Owner: DonaldKellett
- License: mit
- Created: 2024-04-03T03:49:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T13:49:49.000Z (about 2 years ago)
- Last Synced: 2025-02-27T09:08:34.881Z (over 1 year ago)
- Topics: cicd, cloud-native, devops, golang
- Language: Brainfuck
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# learning-go-book
My adaptation of the code examples and exercises in [Learning Go](https://learning-go-book.dev/) by Jon Bodner
## Developing
### Prerequisites
Ensure [Make](https://www.gnu.org/software/make/) is installed, then download and install a sufficiently recent version of [Go](https://go.dev/) \(>= 1.22.1\), set your `GOPATH` accordingly, add `$GOPATH/bin` to your `PATH` and install the shadow linter:
```bash
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
```
### Running the code examples
Fork and clone this repository, then navigate to the project root and make it your working directory.
The code examples for each chapter is self-contained with Make as the build system. For example, to run the code examples for chapter 1, enter the `ch1/` subdirectory and invoke the following command:
```bash
make
```
To run unit tests instead \(used in CI\):
```bash
make test
```
## License
[MIT](./LICENSE)