A one day Golang intro workshop for devopenspace 2018.
Questions, suggestions welcome.
This workshop contains slides, code, examples and exercises. Target audience are people familiar with some programming language.
The following sections are available:
- Golang Origins
- Installation
- Editors
- Hello World
- Basic data types
- Basics tour (17)
- Flow control tour (14)
- More types tour (27)
- Methods and Interfaces (26)
- Concurrency (11)
- Working with Files
- Reader, writers and the io package (1+)
- Working with XML and JSON
- Testing Code
- Web clients (4)
- Writing web servers (7)
- Network examples (3)
- Writing documentation
- Tools
- Further resources
- Opinionated language.
- It imposes a workspace structure.
- Every type has a zero value. A proverb says: Make the zero value useful.
- Error handling without exceptions.
- Multiple return values.
- Encourages tools for code (linter, struct generator).
- A nil value in an interface can be handled gracefully.
- Many more things.