package main
import "fmt"
//定义一个私有结构体
type person struct {
name string
age int
}
func main() {
//结构体的初始化
fmt.Println(person{"Bob",20})
fmt.Println(person{name:"Alice",age:20})
fmt.Println(person{name:"Fred"})
fmt.Println(&person{name:"Ann",age:40})
s:=person{name:"Sean",age:50}
fmt.Println(s.name)
sp := &s
fmt.Println(sp.age)
sp.age = 51
fmt.Println(sp.age)
}