code: func (ep Endpoint) ResourceName() string {
  	name := ep.Addr
  	splt := strings.Split(name, "/")
  	if len(splt) > 0 {
  		name = splt[0]
  	}
  	return strings.TrimSuffix(strings.TrimPrefix(name, "/"), "/")
  }
docs: // ResourceName returns resource name of an endpoint