:= in go code example
Example 1: golang declare
package main
import "fmt"
func main() {
var i, j int = 1, 2
k := 3
c, python, java := true, false, "no!"
fmt.Println(i, j, k, c, python, java)
}
Example 2: := in golang
For example, var foo int = 10 is the same as foo := 10.