func (self *Project) AllByName(ctx context.Context) ([]Project, error) {
	log.Println("Finding project by name ", self.Name)
	var projects []Project

	keys, err := datastore.NewQuery(ProjectKind).Filter("name =", self.Name).GetAll(ctx, &projects)
	if err != nil {
		return projects, err
	}
	for i, key := range keys {
		projects[i].Key = key.IntID()
	}
	return projects, nil
}
// AllByName all projects matching this name
AllByName all projects matching this name
// AllByName all projects matching this name
func (self *Project) AllByName(ctx context.Context) ([]Project, error) {
	log.Println("Finding project by name ", self.Name)
	var projects []Project
	keys, err := datastore.NewQuery(ProjectKind).Filter("name =", self.Name).GetAll(ctx, &projects)
	if err != nil {
		return projects, err
	}
	for i, key := range keys {
		projects[i].Key = key.IntID()
	}
	return projects, nil
}
func ( self * Project ) AllByName ( ctx context . Context ) ( [ ] Project , error ) { log . Println ( " " , self . Name ) var projects [ ] Project keys , err := datastore . NewQuery ( ProjectKind ) . Filter ( " " , self . Name ) . GetAll ( ctx , & projects ) if err != nil { return projects , err } for i , key := range keys { projects [ i ] . Key = key . IntID ( ) } return projects , nil }
AllByName all projects matching this name
AllByName all projects matching this name