Learning Go using book "Introducing Go", written by Caleb Doxsey, and other online materials.
| Module | Description |
|---|---|
core |
The core features from the Go SDK. |
elasticsearch |
Elasticsearch Go client. |
http |
Using HTTP client in Go. |
json |
JSON marshalling and unmarshalling. |
temporal |
Writing invincible workflows with https://temporal.io/. |
Install Go on macOS:
> brew install goCheck Go version:
> go versionRun the main program:
> go run main.go
Hello, world!Run tests for the current directory:
> go testRun tests for all directories (current one and the sub-directories):
> go test ./...Run test with the verbose mode (-v):
> go test -v ./...The source code is formatted automatically using gofmt tool:
> go fmt ./...- Dan Buch, "travis-ci-examples/go-example", GitHub, 2019. https://github.com/travis-ci-examples/go-example
- Go, "Package testing", Golang, 2019. https://golang.org/pkg/testing/
- Andrew Gerrand, "go fmt your code", Golang, 2013. https://blog.golang.org/go-fmt-your-code
- Mark McGranaghan, "Go by Example", gobyexample, 2019. https://gobyexample.com/