var s1 string
s1 = "Learn Go!"
// declare multiple variables at once
var b, c int = 1, 2
var d = true

Short declaration

s1 := "Learn Go!"        // string
b, c := 1, 2             // int
d := true                // bool

See: Basic types

Comments