Go is an open source programming language designed for building simple, fast, and reliable software. 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.
- hello-world
- values
- variables
- constant
- for
- if-else
- switch
- arrays
- slices
- maps
- range
- functions
- multiple-return-values
- variadic-functions
- closures
- recursion
- pointers
- structs
- methods
- interfaces
- errors
- goroutines
- channels
- channel-buffering
- channel-synchronization
- channel-directions
- select
- timeouts
- non-blocking-channel-operations
- closing-channels
- range-over-channels
- timers
- tickers
- worker-pools
- rate-limiting
- atomic-counters
- mutexes
- stateful-goroutines
- sorting
- sorting-by-functions
- panic
- defer
- collection-functions
- string-functions
- string-formatting
- regular-expressions
- json
- time
- epoch
- time-formatting-parsing
- random-numbers
- number-parsing
- url-parsing
- sha1-hashes
- base64-encoding
- reading-files
- writing-files
- line-filters
- command-line-arguments
- command-line-flags
- environment-variables
- spawning-processes
- execing-processes
- signals
- exit