Documentation ¶
Overview ¶
Package defval help reduce if-else block due that go has no '?:'
Index ¶
- func BoolInt(b bool, i *int)
- func BoolStr(b bool, s *string)
- func Int(v *int, d int)
- func Int16(v *int16, d int16)
- func Int32(v *int32, d int32)
- func Int64(v *int64, d int64)
- func Int8(v *int8, d int8)
- func Nil(i, v interface{})
- func String(s *string, d string)
- func Uint(v *uint, d uint)
- func Uint16(v *uint16, d uint16)
- func Uint32(v *uint32, d uint32)
- func Uint64(v *uint64, d uint64)
- func Uint8(v *uint8, d uint8)
- type Cond
- func (c Cond) Int(a, b int) int
- func (c Cond) Int16(a, b int16) int16
- func (c Cond) Int32(a, b int32) int32
- func (c Cond) Int64(a, b int64) int64
- func (c Cond) Int8(a, b int8) int8
- func (c Cond) String(a, b string) string
- func (c Cond) Uint(a, b uint) uint
- func (c Cond) Uint16(a, b uint16) uint16
- func (c Cond) Uint32(a, b uint32) uint32
- func (c Cond) Uint64(a, b uint64) uint64
- func (c Cond) Uint8(a, b uint8) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.