/learning-go

Learning Go programming language

Primary LanguageGoMIT LicenseMIT

Learning Go Build Status

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/.

Installation

Install Go on macOS:

> brew install go

Check Go version:

> go version

Run

Run the main program:

> go run main.go
Hello, world!

Testing

Run tests for the current directory:

> go test

Run tests for all directories (current one and the sub-directories):

> go test ./...

Run test with the verbose mode (-v):

> go test -v ./...

Code Style

The source code is formatted automatically using gofmt tool:

> go fmt ./...

References