Documentation
¶
Index ¶
- func Add(a, b interface{}) interface{}
- func Divide(a, b interface{}) float64
- func Equal(a, b interface{}) bool
- func Exponent(a, b any) float64
- func Fetch(from, i any) any
- func FetchField(from any, field *Field) any
- func FetchFromEmbeddedInterfaces(v reflect.Value, fieldName string) (any, bool)
- func FetchMethod(from any, method *Method) any
- func In(needle any, array any) bool
- func IsNil(v any) bool
- func Len(a any) int
- func Less(a, b interface{}) bool
- func LessOrEqual(a, b interface{}) bool
- func MakeRange(min, max int) []int
- func Modulo(a, b interface{}) int
- func More(a, b interface{}) bool
- func MoreOrEqual(a, b interface{}) bool
- func Multiply(a, b interface{}) interface{}
- func Negate(i any) any
- func Slice(array, from, to any) any
- func Subtract(a, b interface{}) interface{}
- func ToBool(a any) bool
- func ToFloat64(a any) float64
- func ToInt(a any) int
- func ToInt64(a any) int64
- type Field
- type Method
- type Sort
- type SortBy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchField ¶
func FetchFromEmbeddedInterfaces ¶ added in v1.18.0
FetchFromEmbeddedInterfaces looks up fieldName on the concrete types held by anonymous (embedded) interface fields of the struct value v, recursing through embedded structs to reach further embedded interfaces. It is shared by Fetch and the builtin get() so that both resolve such fields consistently.
func FetchMethod ¶
func LessOrEqual ¶
func LessOrEqual(a, b interface{}) bool
func MoreOrEqual ¶
func MoreOrEqual(a, b interface{}) bool