code: func ParseRef(ref string) (*Ref, error) {
  	if ref == "" {
  		return nil, trace.BadParameter("missing value")
  	}
  	parts := strings.FieldsFunc(ref, isDelimiter)
  	switch len(parts) {
  	case 1:
  		shortcut, err := ParseShortcut(parts[0])
  		if err != nil {
  			return nil, trace.Wrap(err)
  		}
  		return &Ref{Kind: shortcut}, nil
  	case 2:
  		shortcut, err := ParseShortcut(parts[0])
  		if err != nil {
  			return nil, trace.Wrap(err)
  		}
  		return &Ref{Kind: shortcut, Name: parts[1]}, nil
  	}
  	return nil, trace.BadParameter("failed to parse '%v'", ref)
  }
docs: // ParseRef parses resource reference eg daemonsets/ds1