go-learn/variables.go

22 lines
211 B
Go
Raw Normal View History

2021-03-01 18:12:37 +00:00
package main
import "fmt"
func main() {
var a = "initial"
fmt.Println(a)
var b, c int = 1, 2
fmt.Println(b, c)
var d = true
fmt.Println(d)
var e int
fmt.Println(e)
f := "apple"
fmt.Println(f)
}