Some examples and code written in Go for didactic purpose
- Hello World : first Go application. Intro to test. If and switch. Functions.
- Integers : integers. Examples documentation.
- Iteration: for loop. Benchmarking.
- Arrays and Slices : arrays. Slices (make, append and len). Test coverage. reflect.DeepEqual.
- Structs, Methods and Interfaces : structs. Methods. Interfaces. Table based tests.
- Pointers and Errors : pointers. Errors. Nil. Errcheck.
- Maps : maps. Errors that are constants.
- Dependency Injection : dependency injection.
- Mocking : mocking. Spies.
- Concurrency : concurrency. goroutines. Anonymous functions. Channels. Race conditions.
- Select : select. time.After. time.Since. httptest. defer.
- Reflection : reflect package.
- Sync : sync. Mutex. Waitgroup. go vet.