标签:style blog color ar sp div log bs as
Struct fields are accessed using a dot.
package main import "fmt" type Vertex struct { X int Y int } func main() { v := Vertex{1, 2} v.X = 4 fmt.Println(v.X) }
标签:style blog color ar sp div log bs as
原文地址:http://www.cnblogs.com/ghgyj/p/4053058.html