WithUrlForEndpoint
Method
func (Resource) WithUrlForEndpoint( endpointName string, callback func(obj *ResourceUrlAnnotation),) ResourceSignature
method
WithUrlForEndpoint builderRegisters a callback to update the URL displayed for the endpoint with the specified name.
WithUrlForEndpoint( endpointName string, callback func(obj *ResourceUrlAnnotation),) ResourceParameters
endpointName stringThe name of the endpoint to customize the URL for.callbackfunc(obj *ResourceUrlAnnotation) callbackThe callback that will customize the URL.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: