Go learning path

Structs and Interfaces

Build your own types with structs, methods, pointers, interfaces, embedding, errors and generics.

Try Go online

7 lessons

Structs

Group related values into your own type with named fields.

View lesson →

Error Handling

Return errors as values, wrap them with context and check them with errors.Is and errors.As.

View lesson →

Generics

Write one function or type that works with many types using type parameters.

View lesson →