Hello World and Program Structure
Write your first Go program and learn what package main, import and func main do.
Lektion ansehen →Go-Syntax Schritt für Schritt: Variablen, Typen, Strings, Bedingungen, Schleifen, Funktionen, Arrays, Slices, Maps und Eingabe.
Go online ausprobierenWrite your first Go program and learn what package main, import and func main do.
Lektion ansehen →Declare variables with var and :=, and fixed values with const.
Lektion ansehen →Work with int, float64, bool, rune and string, and convert between them.
Lektion ansehen →Use arithmetic, comparison and logical operators, and see how integer division works.
Lektion ansehen →Join, search, split and slice text with Go strings and the strings package.
Lektion ansehen →Define functions, return more than one value and accept any number of arguments.
Lektion ansehen →Store a fixed number of values and see that arrays are copied on assignment.
Lektion ansehen →Read a line from the keyboard and turn it into a number safely.
Lektion ansehen →