- Esecutori
-
Impara
Impara Python Esempi eseguibili, NumPy, pandas e altro Impara l'IAReti neurali, ML e LLM da zero Impara C e C++ Puntatori, memoria, STL e C++ moderno Impara C#Fondamenti, OOP, LINQ, async ed esercizi .NET Impara MatplotlibGrafici a linee, barre, dispersione e torta con visualizzatori Impara RustOwnership, trait, gestione degli errori e thread Impara GoSlice, interfacce, goroutine e canali Algoritmi Python Ricerca, ordinamento, ricorsione e visualizzazioni O(n) Algoritmi C e C++ Confronta le implementazioni in C e C++ Programmazione per bambini Impara a programmare giocando!
- SfideNuovo
- Per docentiNuovo
- Aggiornamenti
- Offrimi un caffè
Struct e interfacce
Crea i tuoi tipi con struct, metodi, puntatori, interfacce, embedding, errori e generici.
Prova Go online7 lezioni
Methods and Receivers
Attach functions to a type and choose between value and pointer receivers.
Vedi la lezione →Struct Embedding and Composition
Reuse fields and methods by embedding one struct in another.
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 →