Trilha de Go

Structs e interfaces

Crie seus próprios tipos com structs, métodos, ponteiros, interfaces, embedding, erros e genéricos.

Experimentar Go online

7 lições

Structs

Group related values into your own type with named fields.

Ver lição →

Error Handling

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

Ver lição →

Generics

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

Ver lição →