runtime

package
v1.17.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a, b interface{}) interface{}

func Divide

func Divide(a, b interface{}) float64

func Equal

func Equal(a, b interface{}) bool

func Exponent

func Exponent(a, b any) float64

func Fetch

func Fetch(from, i any) any

func FetchField

func FetchField(from any, field *Field) any

func FetchMethod

func FetchMethod(from any, method *Method) any

func In

func In(needle any, array any) bool

func IsNil

func IsNil(v any) bool

func Len

func Len(a any) int

func Less

func Less(a, b interface{}) bool

func LessOrEqual

func LessOrEqual(a, b interface{}) bool

func MakeRange

func MakeRange(min, max int) []int

func Modulo

func Modulo(a, b interface{}) int

func More

func More(a, b interface{}) bool

func MoreOrEqual

func MoreOrEqual(a, b interface{}) bool

func Multiply

func Multiply(a, b interface{}) interface{}

func Negate

func Negate(i any) any

func Slice

func Slice(array, from, to any) any

func Subtract

func Subtract(a, b interface{}) interface{}

func ToBool added in v1.17.7

func ToBool(a any) bool

func ToFloat64

func ToFloat64(a any) float64

func ToInt

func ToInt(a any) int

func ToInt64

func ToInt64(a any) int64

Types

type Field

type Field struct {
	Index []int
	Path  []string
}

type Method

type Method struct {
	Index int
	Name  string
}

type Sort added in v1.16.1

type Sort struct {
	Desc  bool
	Array []any
}

func (*Sort) Len added in v1.16.1

func (s *Sort) Len() int

func (*Sort) Less added in v1.16.1

func (s *Sort) Less(i, j int) bool

func (*Sort) Swap added in v1.16.1

func (s *Sort) Swap(i, j int)

type SortBy added in v1.16.1

type SortBy struct {
	Desc   bool
	Array  []any
	Values []any
}

func (*SortBy) Len added in v1.16.1

func (s *SortBy) Len() int

func (*SortBy) Less added in v1.16.1

func (s *SortBy) Less(i, j int) bool

func (*SortBy) Swap added in v1.16.1

func (s *SortBy) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL