Percorso Go

Struct e interfacce

Crea i tuoi tipi con struct, metodi, puntatori, interfacce, embedding, errori e generici.

Prova Go online

7 lezioni

Structs

Group related values into your own type with named fields.

Vedi la lezione →

Error Handling

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

Vedi la lezione →

Generics

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

Vedi la lezione →