/*
FindResourcesByProject
Returns a list of all the resources matching the given projectSlug
*/
FindResourcesByProject
Returns a list of all the resources matching the given projectSlug
/ * FindResourcesByProject Returns a list of all the resources matching the given projectSlug * /
func (cfg *Config) FindResourcesByProject(projectSlug string) []*Resource {
	var resources []*Resource
	for i := range cfg.Local.Resources {
		resource := &cfg.Local.Resources[i]
		if resource.ProjectSlug == projectSlug {
			resources = append(resources, resource)
		}
	}
	return resources
}
func ( cfg * Config ) FindResourcesByProject ( projectSlug string ) [ ] * Resource { var resources [ ] * Resource for i := range cfg . Local . Resources { resource := & cfg . Local . Resources [ i ] if resource . ProjectSlug == projectSlug { resources = append ( resources , resource ) } } return resources }
FindResourcesByProject
Returns a list of all the resources matching the given projectSlug
FindResourcesByProject Returns a list of all the resources matching the given projectSlug
// range returns copies: https://stackoverflow.com/q/20185511