Documentation
¶
Overview ¶
Package decoder implements cache decoders.
Index ¶
- type StringDecoder
- func (d StringDecoder) Bool(v interface{}) (bool, error)
- func (d StringDecoder) Bytes(v interface{}) ([]byte, error)
- func (d StringDecoder) Float64(v interface{}) (float64, error)
- func (d StringDecoder) Int64(v interface{}) (int64, error)
- func (d StringDecoder) String(v interface{}) (string, error)
- func (d StringDecoder) Uint64(v interface{}) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringDecoder ¶
type StringDecoder struct{}
StringDecoder decodes a string into various types.
func (StringDecoder) Bool ¶
func (d StringDecoder) Bool(v interface{}) (bool, error)
Bool coverts a string to a boolean.
func (StringDecoder) Bytes ¶
func (d StringDecoder) Bytes(v interface{}) ([]byte, error)
Bytes converts a string to bytes.
func (StringDecoder) Float64 ¶
func (d StringDecoder) Float64(v interface{}) (float64, error)
Float64 converts a string to a float64.
func (StringDecoder) Int64 ¶
func (d StringDecoder) Int64(v interface{}) (int64, error)
Int64 converts a string to an int64.
func (StringDecoder) String ¶
func (d StringDecoder) String(v interface{}) (string, error)
String converts a string to a string.
func (StringDecoder) Uint64 ¶
func (d StringDecoder) Uint64(v interface{}) (uint64, error)
Uint64 converts a string to a uint64.
Click to show internal directories.
Click to hide internal directories.