TutorialEdge Tutorials
Make decisions in Go with if, else if and else, plus comparison and logical operators.
Define behaviour contracts with Go interfaces and learn how types satisfy them implicitly.
Store and look up key/value pairs in Go with maps — create, read, update, and the comma-ok idiom.
Attach behaviour to your types with Go methods, and learn the difference between value and pointer receivers.
Understand pointers in Go — the & and * operators — and when to use them to mutate shared state.
Combine structs, methods, and pointers to resolve a duel between a hero and a monster.
Combine variables, types, and constants to print a hero's character sheet — your first Module 1 quest.
Combine for loops and conditionals to crawl through a dungeon, flagging the trapped rooms.
Combine slices and maps to tally up the loot you have plundered on your adventures.
Combine an interface and error handling to try your luck against a locked chest.