添加声明
type Authenticator struct { Name string `json:"name"` Phone int64 `json:"phone"`}并改变
Authenticators []struct { Name string `json:"name"` Phone int64 `json:"phone"`} `json:"authenticators"`至
Authenticators []Authenticator `json:"authenticators"`
然后,向第一个用户添加身份验证器:
u.User[0].Authenticators = append(u.User[0].Authenticators, Authenticator{ Name: "John Doe", Phone: 1234567890,})


