models/user/types.go
exported type Profile should have comment or be unexported Open
Open
type Profile struct {
- Exclude checks
struct field Id should be ID Open
Open
Id string `json:"id"`
- Exclude checks
don't use MixedCaps in package name; userModel should be usermodel Open
Open
package userModel
- Exclude checks
struct field Id should be ID Open
Open
Id string `json:"id" bson:"_id,omitempty"`
- Exclude checks