DonaldKellett / learning-go-book

My adaptation of the code examples and exercises in Learning Go by Jon Bodner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

learning-go-book

My adaptation of the code examples and exercises in Learning Go by Jon Bodner

Developing

Prerequisites

Ensure Make is installed, then download and install a sufficiently recent version of Go (>= 1.22.1), set your GOPATH accordingly, add $GOPATH/bin to your PATH and install the shadow linter:

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:

make

To run unit tests instead (used in CI):

make test

License

MIT

About

My adaptation of the code examples and exercises in Learning Go by Jon Bodner

License:MIT License


Languages

Language:Brainfuck 48.4%Language:Go 46.3%Language:Makefile 5.3%