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 and may use new language features. Try to upgrade to the latest version if something isn't working.
From the minds of Go's creators — ideas, guidelines & the best practices for writing clear, idiomatic Go code; visit the dark-themed customised Effective Go or the original site. For hands-on practice with Go, visit here. For structuring your Go projects, refer to the community-driven Go project layout standards.
This is a modified deployment of Go by Example. Visit gobyexample.com for the original site.
85 examples
● basics
● functions
● concurrency
● stdlib
● io
● cli
● network
● system