Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type City ¶
type City struct { ID primitive.ObjectID `bson:"_id,omitempty"` Title htmlfinder.NormalCaseCity `bson:"t,omitempty"` Slug string `bson:"s,omitempty"` }
func (*City) GetOrCreate ¶
func (c *City) GetOrCreate(ctx context.Context, title htmlfinder.NormalCaseCity) (doc City, err error)
Click to show internal directories.
Click to hide internal directories.