Parcours Go

Structs et interfaces

Créez vos propres types avec les structs, méthodes, pointeurs, interfaces, l'embedding, les erreurs et les génériques.

Essayer Go en ligne

7 leçons

Structs

Group related values into your own type with named fields.

Voir la leçon →

Error Handling

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

Voir la leçon →

Generics

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

Voir la leçon →