1
2
3
4
5
6
7
//定义一个struct
type Student struct {
    id      int
    name    string
    address string
    age     int
}

https://github.com/jemygraw/TechDoc/blob/master/Go%E8%BD%BB%E6%9D%BE%E5%AD%A6/go_tutorial_8_struct_interface.md

https://blog.csdn.net/books1958/article/details/22720033