Go by Example

Go is an open source programming language designed for building scalable, secure and reliable software. Please read the official documentation to learn more.

Go by Example is a hands-on introduction to Go using annotated example programs. Check out the first example or browse the full list below.

Unless stated otherwise, examples here assume the latest major release Go.