code: func SplitResource(r string) (resource, id string, err error) {
  	p := strings.Split(r, "/")
  
  	if len(p) != 2 {
  		err = ErrInvalidResource
  		return
  	}
  
  	resource = p[0]
  	id = p[1]
  
  	return
  }
docs: // SplitResource splits the Resource section of an ARN into its type and id
  // components.