标签:style blog color io ar sp div on log
A struct
is a collection of fields.
(And a type
declaration does what you‘d expect.)
package main import "fmt" type Vertext struct { X int Y int } func main() { fmt.Println(Vertext{1,2}) }
标签:style blog color io ar sp div on log
原文地址:http://www.cnblogs.com/ghgyj/p/4053056.html