Hello World and Program Structure
Write your first Go program and learn what package main, import and func main do.
View lesson →Learn Go syntax step by step: variables, types, strings, conditions, loops, functions, arrays, slices, maps and input.
Try Go onlineWrite your first Go program and learn what package main, import and func main do.
View lesson →Declare variables with var and :=, and fixed values with const.
View lesson →Use arithmetic, comparison and logical operators, and see how integer division works.
View lesson →Define functions, return more than one value and accept any number of arguments.
View lesson →