Documentation ¶
Index ¶
- func AllStrOptions(o []interface{}, t ...interface{}) []string
- func AsMap(s interface{}) map[string]reflect.Value
- func BoolOption(t interface{}, o []interface{}) bool
- func Contains(cont interface{}, val interface{}) bool
- func CopySlice(a interface{}) interface{}
- func Errorf(f string, a ...interface{}) error
- func Etrace(err error) error
- func FieldsOf(s interface{}) []string
- func FloatOption(t interface{}, o []interface{}) float64
- func Fnz(a ...interface{}) interface{}
- func Fnzb(e ...bool) bool
- func Fnzd(a ...float64) float64
- func Fnze(e ...error) error
- func Fnzi(a ...int) int
- func Fnzl(a ...int64) int64
- func Fnzr(a ...float32) float32
- func Fnzs(e ...string) string
- func Ife(expr bool, x interface{}, y interface{}) interface{}
- func Ifed(expr bool, x float64, y float64) float64
- func Ifei(expr bool, x int, y int) int
- func Ifel(expr bool, x int64, y int64) int64
- func Ifer(expr bool, x float32, y float32) float32
- func Ifes(expr bool, x string, y string) string
- func IfsOption(t interface{}, o []interface{}) interface{}
- func IndexOf(a string, b []string) int
- func IndexOfMax(a interface{}) int
- func IndexOfMin(a interface{}) int
- func IntOption(t interface{}, o []interface{}) int
- func KeysOf(m interface{}) interface{}
- func Less(a, b reflect.Value) bool
- func MapInterface(m map[string]reflect.Value) map[string]interface{}
- func Max(a ...interface{}) interface{}
- func MaxIndex(a reflect.Value) int
- func MaxValue(a reflect.Value) reflect.Value
- func Maxd(a float64, b ...float64) float64
- func Maxi(a int, b ...int) int
- func Maxr(a float32, b ...float32) float32
- func Min(a ...interface{}) interface{}
- func MinIndex(a reflect.Value) int
- func MinValue(a reflect.Value) reflect.Value
- func Mind(a float64, b ...float64) float64
- func Mini(a int, b ...int) int
- func Minr(a float32, b ...float32) float32
- func MultiOption(o []interface{}, t ...interface{}) (reflect.Value, int)
- func Option(t interface{}, o interface{}) reflect.Value
- func Panic(err error) interface{}
- func Reverse(slice interface{})
- func Reversed(slice interface{}) interface{}
- func Round32(v float32, n int) float32
- func Round64(v float64, n int) float64
- func RuneOption(t interface{}, o []interface{}) rune
- func Sort(a interface{})
- func Sorted(a interface{}) interface{}
- func SortedKeysOf(m interface{}) interface{}
- func StrMultiOption(o []interface{}, t ...interface{}) (string, int)
- func StrOption(t interface{}, o []interface{}) string
- func Strings(m interface{}) (r []string)
- func ValsOf(m interface{}) interface{}
- type Lexic
- type NaiveRandom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllStrOptions ¶
func AllStrOptions(o []interface{}, t ...interface{}) []string
func BoolOption ¶
func BoolOption(t interface{}, o []interface{}) bool
func FloatOption ¶
func FloatOption(t interface{}, o []interface{}) float64
func Ife ¶
func Ife(expr bool, x interface{}, y interface{}) interface{}
Ife returns x if expr == true else returns y
func Less ¶
Less compares two values and returns true if the left value is less than right one otherwise it returns false
func MultiOption ¶
func RuneOption ¶
func RuneOption(t interface{}, o []interface{}) rune
func SortedKeysOf ¶
func SortedKeysOf(m interface{}) interface{}
SortedKeysOf returns sorted list of keys of a map
func StrMultiOption ¶
Types ¶
type NaiveRandom ¶
type NaiveRandom struct {
Value uint32
}
func (*NaiveRandom) Float ¶
func (nr *NaiveRandom) Float() float64
func (*NaiveRandom) Reseed ¶
func (nr *NaiveRandom) Reseed()
func (*NaiveRandom) Uint ¶
func (nr *NaiveRandom) Uint() uint
Click to show internal directories.
Click to hide internal directories.