Hello World and Program Structure
Write your first Go program and learn what package main, import and func main do.
Vedi la lezione →Impara la sintassi di Go passo dopo passo: variabili, tipi, stringhe, condizioni, cicli, funzioni, array, slice, map e input.
Prova Go onlineWrite your first Go program and learn what package main, import and func main do.
Vedi la lezione →Declare variables with var and :=, and fixed values with const.
Vedi la lezione →Work with int, float64, bool, rune and string, and convert between them.
Vedi la lezione →Use arithmetic, comparison and logical operators, and see how integer division works.
Vedi la lezione →Join, search, split and slice text with Go strings and the strings package.
Vedi la lezione →Define functions, return more than one value and accept any number of arguments.
Vedi la lezione →Store a fixed number of values and see that arrays are copied on assignment.
Vedi la lezione →Read a line from the keyboard and turn it into a number safely.
Vedi la lezione →