code: func getLastSegment(ID string) (string, error) {
  	parts := strings.Split(ID, "/")
  	name := parts[len(parts)-1]
  	if len(name) == 0 {
  		return "", fmt.Errorf("resource name was missing from identifier")
  	}
  
  	return name, nil
  }
docs: // returns the deepest child's identifier from a full identifier string.