/*
RemoveResource
Removes a resource from the Local Resources by creating a new list and
replacing the existing list
*/
RemoveResource
Removes a resource from the Local Resources by creating a new list and
replacing the existing list
/ * RemoveResource Removes a resource from the Local Resources by creating a new list and replacing the existing list * /
func (cfg *Config) RemoveResource(r Resource) {
	cfgResources := []Resource{}
	for _, resource := range cfg.Local.Resources {
		if resource.ProjectSlug == r.ProjectSlug &&
			resource.ResourceSlug == r.ResourceSlug {
			continue
		}
		cfgResources = append(cfgResources, resource)
	}
	cfg.Local.Resources = cfgResources
}
func ( cfg * Config ) RemoveResource ( r Resource ) { cfgResources := [ ] Resource { } for _ , resource := range cfg . Local . Resources { if resource . ProjectSlug == r . ProjectSlug && resource . ResourceSlug == r . ResourceSlug { continue } cfgResources = append ( cfgResources , resource ) } cfg . Local . Resources = cfgResources }
RemoveResource
Removes a resource from the Local Resources by creating a new list and
replacing the existing list
RemoveResource Removes a resource from the Local Resources by creating a new list and replacing the existing list