package oop
type UserInfo struct {
Name string
Age int
Height float32
Eduschool string
Hobby []string
MoreInfo map[string]interface{}
}
func NewUserInfo(name string, age int, height float32, Eduschool string, hobby []string,
MoreInfo map[string]interface{}) *UserInfo {
return &UserInfo{
Name: "",
Age: 0,
Height: 123,
Eduschool: "加州理工学院",
Hobby: []string{"music", "basketball"},
MoreInfo: nil,
}
}