code: func (r *Resource) MethodByName(name string) *Method {
  	switch name {
  	case "GET":
  		return r.Get
  	case "POST":
  		return r.Post
  	case "PUT":
  		return r.Put
  	case "PATCH":
  		return r.Patch
  	case "HEAD":
  		return r.Head
  	case "DELETE":
  		return r.Delete
  	case "OPTIONS":
  		return r.Options
  	default:
  		return nil
  	}
  }
docs: // MethodByName return resource's method by it's name