Base Data Types
Integer 123 int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptrSigned and unsigned integer data types
Byte byteuint8 alias
Rune 'a' runeint32 alias
bool true, false
string `Sytnax`, "Nut"The String data format
Float 2.4 float32 float64
Complex 2 + 5i complex64 complex128
Container Types
Array var arrayname [size]type
Map var mapname map[keytype]valuetype
List listname := list.New()
Flow Control
if / else / else if
if boolean expression {
    // statements
} else if boolean expression {
    // statements
} else {
    // statements
}
for loop
for i := 0; i < size; i++ {
    // statements
}
for (while)
for boolean expression {
    // statements
}
switch / case / default
switch var {
    case varValue1:
        // statements
    case varValue2:
        // statements
    default:
        // statements
}
conditionless switch / case / default
switch {
    case boolean expression:
        // statements
    case boolean expression:
        // statements
    default:
        // statements
}
function
func (arg1 ArgType) name() returnType {
    return value
}
Hello World
package main
import "fmt"
func main() {
    fmt.Println("Hello world!")
}
Logical Operators
Comparisons <, <=,>, >=, ==, !=
And &&
Or ||
Negate !(boolean expression)
Arithmetic Operators
Add +
Subtract -
Multiply *
Divide /
Modulus %
Increment i++
Decrement i--