GraphQL API and utilities for the rpdata project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package models
// A Tag associates a story with other content, like other stories, logs and more.
type Tag struct { Kind TagKind `bson:"kind"` Name string `bson:"name"` }
// Equal returns true if the tags match one another.
func (tag *Tag) Equal(other Tag) bool { return tag.Kind == other.Kind && tag.Name == other.Name }
// IsChangeObject is an interface implementation to identify it as a valid
// ChangeObject in GQL.
func (*Tag) IsChangeObject() { panic("this method is a dummy, and so is its caller") }
|