code: func ParseGroupResource(gr string) GroupResource {
  	if i := strings.Index(gr, "."); i >= 0 {
  		return GroupResource{Group: gr[i+1:], Resource: gr[:i]}
  	}
  	return GroupResource{Resource: gr}
  }
docs: // ParseGroupResource turns "resource.group" string into a GroupResource struct.  Empty strings are allowed
  // for each field.