csquery v1.0.0 CSQuery.OperatorOption View Source
A struct representing an option for one of the structured query syntax operators.
During expression construction, options that are not recognized for a given
operator will either be discarded (if already a CSQuery.OperatorOption
struct) or
be treated as a named field (if part of a keyword list). Options that do not
have a string value will be discarded.
Link to this section Summary
Functions
Provide a CSQuery.OperatorOption
struct (or nil
)
Return a CSQuery.OperatorOption
struct, or nil
based on the name
and value
provided
Return a string value representation of the CSQuery.OperatorOption
struct
Link to this section Types
Link to this section Functions
Provide a CSQuery.OperatorOption
struct (or nil
).
new/1
is mostly used during expression list construction. See new/2
for
more information.
Return a CSQuery.OperatorOption
struct, or nil
based on the name
and value
provided.
new/2
may return nil
if:
- the
name
is not innames/0
; - the
value
isnil
; - or the
value
does not conform to theString.Chars
protocol.
Return a string value representation of the CSQuery.OperatorOption
struct.
The response format will be "name=value"
. If the struct value
is nil
or
does not conform to the String.Chars
protocol, the response will be ""
.