Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCallOption = &callOptions{}
View Source
var WithIntField = func(intField int) CallOption {
return func(c *callOptions) {
c.intField = intField
}
}
View Source
var WithInterfaceField = func(interfaceField interface{}) CallOption {
return func(c *callOptions) {
c.interfaceField = interfaceField
}
}
View Source
var WithNumber = func(number json.Number) CallOption {
return func(c *callOptions) {
c.number = number
}
}
View Source
var WithStringField = func(stringField string) CallOption {
return func(c *callOptions) {
c.stringField = stringField
}
}
View Source
var WithWriter = func(writer io.Writer) CallOption {
return func(c *callOptions) {
c.writer = writer
}
}
Functions ¶
This section is empty.
Types ¶
type CallOption ¶
type CallOption func(*callOptions)
Click to show internal directories.
Click to hide internal directories.