Documentation ¶
Overview ¶
Package format converts key-values into query strings.
Index ¶
- type Format
- func (x *Format) Bool(in keyval.Bool)
- func (x *Format) Bytes(in keyval.Bytes)
- func (x *Format) Clear(_ keyval.Clear)
- func (x *Format) Directory(in keyval.Directory)
- func (x *Format) Float(in keyval.Float)
- func (x *Format) Int(in keyval.Int)
- func (x *Format) Key(in keyval.Key)
- func (x *Format) KeyValue(in keyval.KeyValue)
- func (x *Format) MaybeMore(_ keyval.MaybeMore)
- func (x *Format) Nil(_ keyval.Nil)
- func (x *Format) Query(in keyval.Query)
- func (x *Format) Reset()
- func (x *Format) Str(in keyval.String)
- func (x *Format) String() string
- func (x *Format) Tuple(in keyval.Tuple)
- func (x *Format) UUID(in keyval.UUID)
- func (x *Format) Uint(in keyval.Uint)
- func (x *Format) Value(in keyval.Value)
- func (x *Format) Variable(in keyval.Variable)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format struct {
// contains filtered or unexported fields
}
Format provides methods which convert the types defined in keyval into strings. The methods with an input parameter format their input into a string and append the string to an internal buffer, which can be retrieved or cleared via the String and Reset methods.
func (*Format) Directory ¶
Directory formats the given keyval.Directory and appends it to the internal buffer.
func (*Format) KeyValue ¶
KeyValue formats the given keyval.KeyValue and appends it to the internal buffer.
func (*Format) MaybeMore ¶
MaybeMore formats the given keyval.MaybeMore and appends it to the internal buffer.
Click to show internal directories.
Click to hide internal directories.