package channels import "git.aiterp.net/rpdata/api/models" // FindName finds a channel by its id (its name). func FindName(name string) (models.Channel, error) { channel := models.Channel{} err := collection.FindId(name).One(&channel) return channel, err }