code: func (rt *ResourceType) setOptionalMethods() {
  	if rt.OptionalGet != nil {
  		rt.OptionalGet.Name = "GET"
  		rt.optionalMethods = append(rt.optionalMethods, rt.OptionalGet)
  	}
  	if rt.OptionalPost != nil {
  		rt.OptionalPost.Name = "POST"
  		rt.optionalMethods = append(rt.optionalMethods, rt.OptionalPost)
  	}
  	if rt.OptionalPut != nil {
  		rt.OptionalPut.Name = "PUT"
  		rt.optionalMethods = append(rt.optionalMethods, rt.OptionalPut)
  	}
  	if rt.OptionalPatch != nil {
  		rt.OptionalPatch.Name = "PATCH"
  		rt.optionalMethods = append(rt.optionalMethods, rt.OptionalPatch)
  	}
  	if rt.OptionalHead != nil {
  		rt.OptionalHead.Name = "HEAD"
  		rt.optionalMethods = append(rt.optionalMethods, rt.OptionalHead)
  	}
  	if rt.OptionalDelete != nil {
  		rt.OptionalDelete.Name = "DELETE"
  		rt.optionalMethods = append(rt.optionalMethods, rt.OptionalDelete)
  	}
  	if rt.OptionalOptions != nil {
  		rt.OptionalOptions.Name = "OPTIONS"
  		rt.optionalMethods = append(rt.optionalMethods, rt.OptionalOptions)
  	}
  }
docs: // setOptionalMethods set name of all optional methods
  // and add it to optionalMethods slice