Documentation ¶
Index ¶
- Variables
- func AddDirTrailSlash(dir string) string
- func AppendValue(dest interface{}, value ...interface{}) (err error)
- func CastFloat64(value interface{}) (def float64, err error)
- func CastInt64(value interface{}) (def int64, err error)
- func CastUint64(value interface{}) (def uint64, err error)
- func FileExists(f string) bool
- func Get(key string, m interface{}) (err error)
- func MapValue(dest interface{}, origin interface{}) (err error)
- func MapValues(dest []interface{}, origin interface{}) (errs []error)
- func Must(function interface{}, args ...interface{}) interface{}
- func SaveUniqueFile(rdr io.ReadSeeker, dir string, ext string) (name string, err error)
- func Set(key string, m interface{}, expiry ...int) (err error)
- func Sha224Sum(rdr io.Reader) (hash []byte, err error)
- func StringSplitLastN(s, sep string, n int) (splitted []string)
- type Memcache
- type ValueGetter
- func (vg ValueGetter) Get(key interface{}, def ...interface{}) (res interface{})
- func (vg ValueGetter) GetBool(key string, def ...bool) (res bool)
- func (vg ValueGetter) GetBoolSlice(key string, def ...[]bool) (res []bool)
- func (vg ValueGetter) GetByte(key string, def ...byte) (res byte)
- func (vg ValueGetter) GetByteSlice(key string, def ...[]byte) (res []byte)
- func (vg ValueGetter) GetBytes(key string, def ...[]byte) (res []byte)
- func (vg ValueGetter) GetBytesSlice(key string, def ...[][]byte) (res [][]byte)
- func (vg ValueGetter) GetFloat32(key string, def ...float32) float32
- func (vg ValueGetter) GetFloat32Slice(key string, def ...[]float32) (res []float32)
- func (vg ValueGetter) GetFloat64(key string, def ...float64) (res float64)
- func (vg ValueGetter) GetFloat64Slice(key string, def ...[]float64) (res []float64)
- func (vg ValueGetter) GetInt(key string, def ...int) int
- func (vg ValueGetter) GetInt16(key string, def ...int16) int16
- func (vg ValueGetter) GetInt16Slice(key string, def ...[]int16) (res []int16)
- func (vg ValueGetter) GetInt32(key string, def ...int32) int32
- func (vg ValueGetter) GetInt32Slice(key string, def ...[]int32) (res []int32)
- func (vg ValueGetter) GetInt64(key string, def ...int64) (res int64)
- func (vg ValueGetter) GetInt64Slice(key string, def ...[]int64) (res []int64)
- func (vg ValueGetter) GetInt8(key string, def ...int8) int8
- func (vg ValueGetter) GetInt8Slice(key string, def ...[]int8) (res []int8)
- func (vg ValueGetter) GetIntSlice(key string, def ...[]int) (res []int)
- func (vg ValueGetter) GetSlice(key string, def ...[]interface{}) (res []interface{})
- func (vg ValueGetter) GetString(key string, def ...string) (res string)
- func (vg ValueGetter) GetStringSlice(key string, def ...[]string) (res []string)
- func (vg ValueGetter) GetUint(key string, def ...uint) uint
- func (vg ValueGetter) GetUint16(key string, def ...uint16) uint16
- func (vg ValueGetter) GetUint16Slice(key string, def ...[]uint16) (res []uint16)
- func (vg ValueGetter) GetUint32(key string, def ...uint32) uint32
- func (vg ValueGetter) GetUint32Slice(key string, def ...[]uint32) (res []uint32)
- func (vg ValueGetter) GetUint64(key string, def ...uint64) (res uint64)
- func (vg ValueGetter) GetUint64Slice(key string, def ...[]uint64) (res []uint64)
- func (vg ValueGetter) GetUint8(key string, def ...uint8) uint8
- func (vg ValueGetter) GetUint8Slice(key string, def ...[]uint8) (res []uint8)
- func (vg ValueGetter) GetUintSlice(key string, def ...[]uint) (res []uint)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCastFailed = errors.New("type casting failed")
Functions ¶
func AddDirTrailSlash ¶
func AppendValue ¶
func AppendValue(dest interface{}, value ...interface{}) (err error)
func CastFloat64 ¶
func CastUint64 ¶
func FileExists ¶
func MapValue ¶
func MapValue(dest interface{}, origin interface{}) (err error)
usage MapValue(&dest, origin) *dest = origin
func SaveUniqueFile ¶
func StringSplitLastN ¶
Types ¶
type ValueGetter ¶
type ValueGetter func(key interface{}) (interface{}, bool)
func (ValueGetter) Get ¶
func (vg ValueGetter) Get(key interface{}, def ...interface{}) (res interface{})
func (ValueGetter) GetBoolSlice ¶
func (vg ValueGetter) GetBoolSlice(key string, def ...[]bool) (res []bool)
func (ValueGetter) GetByteSlice ¶
func (vg ValueGetter) GetByteSlice(key string, def ...[]byte) (res []byte)
func (ValueGetter) GetBytes ¶
func (vg ValueGetter) GetBytes(key string, def ...[]byte) (res []byte)
func (ValueGetter) GetBytesSlice ¶
func (vg ValueGetter) GetBytesSlice(key string, def ...[][]byte) (res [][]byte)
func (ValueGetter) GetFloat32 ¶
func (vg ValueGetter) GetFloat32(key string, def ...float32) float32
func (ValueGetter) GetFloat32Slice ¶
func (vg ValueGetter) GetFloat32Slice(key string, def ...[]float32) (res []float32)
func (ValueGetter) GetFloat64 ¶
func (vg ValueGetter) GetFloat64(key string, def ...float64) (res float64)
func (ValueGetter) GetFloat64Slice ¶
func (vg ValueGetter) GetFloat64Slice(key string, def ...[]float64) (res []float64)
func (ValueGetter) GetInt ¶
func (vg ValueGetter) GetInt(key string, def ...int) int
all ints (e.g. int8, int16, int, int32, int64) are stored as int64
func (ValueGetter) GetInt16Slice ¶
func (vg ValueGetter) GetInt16Slice(key string, def ...[]int16) (res []int16)
func (ValueGetter) GetInt32Slice ¶
func (vg ValueGetter) GetInt32Slice(key string, def ...[]int32) (res []int32)
func (ValueGetter) GetInt64Slice ¶
func (vg ValueGetter) GetInt64Slice(key string, def ...[]int64) (res []int64)
func (ValueGetter) GetInt8Slice ¶
func (vg ValueGetter) GetInt8Slice(key string, def ...[]int8) (res []int8)
func (ValueGetter) GetIntSlice ¶
func (vg ValueGetter) GetIntSlice(key string, def ...[]int) (res []int)
func (ValueGetter) GetSlice ¶
func (vg ValueGetter) GetSlice(key string, def ...[]interface{}) (res []interface{})
func (ValueGetter) GetString ¶
func (vg ValueGetter) GetString(key string, def ...string) (res string)
func (ValueGetter) GetStringSlice ¶
func (vg ValueGetter) GetStringSlice(key string, def ...[]string) (res []string)
func (ValueGetter) GetUint16Slice ¶
func (vg ValueGetter) GetUint16Slice(key string, def ...[]uint16) (res []uint16)
func (ValueGetter) GetUint32Slice ¶
func (vg ValueGetter) GetUint32Slice(key string, def ...[]uint32) (res []uint32)
func (ValueGetter) GetUint64 ¶
func (vg ValueGetter) GetUint64(key string, def ...uint64) (res uint64)
func (ValueGetter) GetUint64Slice ¶
func (vg ValueGetter) GetUint64Slice(key string, def ...[]uint64) (res []uint64)
func (ValueGetter) GetUint8Slice ¶
func (vg ValueGetter) GetUint8Slice(key string, def ...[]uint8) (res []uint8)
func (ValueGetter) GetUintSlice ¶
func (vg ValueGetter) GetUintSlice(key string, def ...[]uint) (res []uint)
Click to show internal directories.
Click to hide internal directories.