Structs, Methods and Interfaces in Go: Complete Guide
Learn how to use structs, methods and interfaces in Go. Discover how Go implements object-oriented programming with composition over inheritance.
6 articles
Learn how to use structs, methods and interfaces in Go. Discover how Go implements object-oriented programming with composition over inheritance.
Learn how to use arrays, slices and maps in Go. Master data collections with practical examples: word counter, grade tracker and more.
Learn how to create functions with multiple return values, variadic functions, closures, defer/panic/recover, and the if err != nil pattern in Go. Includes custom error types and best practices.
Learn how to use if with init statements, conditionless switch, and the for loop in all its variants in Go. Includes FizzBuzz, element summation, and an interactive guessing game.
Learn Go basic types (int, float64, string, bool), how to declare variables with var and :=, constants with iota, and the fmt package.
Learn what Go is, why you should learn it, how to install it on Windows, macOS and Linux, and write your first Hello World program.