Learn Go
Learn Go, the compiled language behind much of today's cloud software. Write and build programs, work with types and variables, format output with fmt, make decisions, write functions, and use pointers and interfaces.
- Beginner level
- 7 modules
- 41 lessons
- 181 tasks and questions
Syllabus
01Go BasicsMeet Go, see how a Go program is structured, compiled and run, and learn about packages, imports and comments.7 lessons
02Variables and TypesStore values in typed variables and constants, learn Go's basic types and their zero values, calculate with numbers and convert between types.7 lessons
03Formatting with fmtPrint exactly what you mean with the fmt package: Print, Println and Printf, formatting verbs and widths, building strings with Sprintf, and scanning values from text.6 lessons
04ConditionalsMake decisions in Go with if, else and else if, comparison and logical operators, if statements with a short statement, and switch.6 lessons
05FunctionsWrite your own Go functions: parameters and return values, multiple results and errors, scope, and deferred calls.6 lessons
06Addresses and PointersLearn where values live in memory, how pointers store addresses, and how passing a pointer lets a function change the caller's variable.4 lessons
07Structs, Methods and InterfacesGroup data in structs, attach behavior with methods, and write flexible code with interfaces, type assertions and type switches.5 lessons