Embedding structs in golang gives error “unknown field”
问题 i have a struct in user package called account type Account struct { Tp string `json:"type"bson:"type"` AccountId string `json:"account_id"bson:"account_id"` Credentials map[string]interface{} `json:"credentials,omitempty"bson:"credentials,omitempty"` ProfilePicture string `json:"profile_picture,omitempty"` Username string `json:"username"bson:"username"` AccessToken map[string]interface{}`bson:"access_token,omitempty"` } and in user/accounts im trying to embed this account struct into