ReferenceExpressionBuilder
Handle
A builder for creating Reference instances.
type ReferenceExpressionBuilder interface{}5 members
Properties
property
IsEmpty boolgetIndicates whether the expression is empty.
IsEmpty() (bool, error)Methods
method
AppendFormatted Appends a formatted value to the expression.
AppendFormatted( value string, options ...*AppendFormattedOptions,) errorParameters
valuestringThe formatted string to be appended to the interpolated string.options...*AppendFormattedOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AppendFormattedOptions argument.
Format*stringThe format to be applied to the value. e.g., "uri"Returns
errorReturns error.
method
AppendLiteral Appends a literal value to the expression.
AppendLiteral(value string) errorParameters
valuestringThe literal string value to be appended to the interpolated string.Returns
errorReturns error.
method
AppendValueProvider Appends a value provider to the reference expression
AppendValueProvider( valueProvider any, options ...*AppendValueProviderOptions,) errorParameters
valueProvider anyThe value provider to append.options...*AppendValueProviderOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AppendValueProviderOptions argument.
Format*stringOptional format specifier.Returns
errorReturns error.
method
BuildBuilds the reference expression
Build() *ReferenceExpressionReturns
*ReferenceExpression Returns a handle; failures surface later via Err().