Code samples with playground links to follow along the workshop:
- Hello World - https://play.golang.org/p/mHIEl2BLCxl
- Quiz: What’s the value of var i int ? - https://play.golang.org/p/yrFsvnKC3t_8
- Constants - https://play.golang.org/p/ALhDKUTot71
- Arrays and Slices - https://play.golang.org/p/_coVfXTkOW3
- Slice Growing - https://play.golang.org/p/OC2o_V-bcdE
- Slice and Backing Arrays - https://play.golang.org/p/fOLzAbGA_Gb
- Maps - https://play.golang.org/p/kOOuD_AnQJ3
- Quiz: What happens if m[1] does not exist? - https://play.golang.org/p/bq-oGGm0jqq
- Maps Reading - https://play.golang.org/p/Ok35GGMprWg
- Comparable Types - https://play.golang.org/p/pwQGkUB0-dG
- Zero Values - https://play.golang.org/p/V2og-amiU_X
- Quiz: What’s the value of string(10) ? - https://play.golang.org/p/TgB6bN-pXfy
- Numeric and String Conversion - https://play.golang.org/p/juTsrD_61Km
- Functions - https://play.golang.org/p/07KxuEEeuwa
- Closures and Immediately Executed Functions - https://play.golang.org/p/EgRyzCtWF9Y
- Looping - https://play.golang.org/p/KM4yAayj39J
- Quiz: What does this map range prints? - https://play.golang.org/p/lTOKklj64Eh
- If-Else - https://play.golang.org/p/BiKtb--OF2Q
- Switch - https://play.golang.org/p/OIw49j9rZBA
- Pointers - https://play.golang.org/p/TSOL8TNnMZJ
- Argument Passing - https://play.golang.org/p/kiJEWGiGR_Z
- Quiz: What’s on the slice ? - https://play.golang.org/p/sUCAlqo3OZa
- Custom Types - https://play.golang.org/p/beExFO3WVad
- Methods - https://play.golang.org/p/7Dfdj17Irw5
- Pointer Receivers - https://play.golang.org/p/wHlxwErHvK4
- Structs - https://play.golang.org/p/JKpxQFJFqRZ
- Struct Pointers - https://play.golang.org/p/qPtMr73KqnR
- Structs and Methods - https://play.golang.org/p/jsxziTSqdjX
- Interfaces - https://play.golang.org/p/kLbid0QCU-H
- Interface Values - https://play.golang.org/p/WX8Wqsfomdo
- Quiz: What’s on the interface value? - https://play.golang.org/p/Y3GUXAYcgdy
- Interface nil Checks - https://play.golang.org/p/H9sG4XBzLlY
- Empty Interfaces - https://play.golang.org/p/52a4vuvEYw3
- Type Assertions - https://play.golang.org/p/qrWc_-CvHqX
- Error Handling - https://play.golang.org/p/Co1TUjW42in
- Panic, Defer and Recover - https://play.golang.org/p/zqq-pC_wsAb
Note: Playground is a controlled environment that has concurrency settings which make the output of the following samples untrustworthy.
- Goroutines - https://play.golang.org/p/C6dWsuapPnh
- Race Detection - https://play.golang.org/p/pU5ijC_IqLV
- Channels - https://play.golang.org/p/bw4Z2KLisN1
- Quiz: what happens when we write to the channel ? - https://play.golang.org/p/k-M4Fdc8Jw3
- Sync Mutex - https://play.golang.org/p/1_7dM2nStUK
- Control Channel - https://play.golang.org/p/ZTt9PPZ_aCT
- Sync Workgroup - https://play.golang.org/p/IXBHFFc54Zy
- Select - https://play.golang.org/p/D5wuB05mzJy