A Tour of Go Structs

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{,})
}
上一篇:Megacli查看Dell服务器Raid状态


下一篇:HP服务器RAID配置