builtin

package
v2.7.10+incompatible Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

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

Add returns a+b

func AndNot

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

AndNot returns a &^ b

func Append

func Append(a interface{}, vals ...interface{}) interface{}

Append does append(a, vals...)

func BitAnd

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

BitAnd returns a & b

func BitNot

func BitNot(a interface{}) interface{}

BitNot returns ^a

func BitOr

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

BitOr returns a | b

func Byte

func Byte(a interface{}) interface{}

Byte returns byte(a)

func Cap

func Cap(a interface{}) int

Cap returns capacity of a collection object. object can be a slice, an array or a chan.

func Copy

func Copy(a, b interface{}) int

Copy does copy(a, b).

func Dec

func Dec(a interface{}) interface{}

Dec returns a-1

func Delete

func Delete(m interface{}, key interface{})

Delete deletes a key from map object.

func EQ

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

EQ returns a == b

func Float

func Float(a interface{}) interface{}

Float returns float64(a)

func GE

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

GE returns a >= b

func GT

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

GT returns a > b

func Get

func Get(m interface{}, key interface{}) interface{}

Get gets a value from an object. object can be a slice, an array, a map or a user-defined class.

func GetVar

func GetVar(m interface{}, key interface{}) interface{}

GetVar returns a member variable of an object. object can be a slice, an array, a map or a user-defined class.

func Inc

func Inc(a interface{}) interface{}

Inc returns a+1

func Int

func Int(a interface{}) interface{}

Int returns int(a)

func Int16

func Int16(a interface{}) interface{}

Int16 returns int16(a)

func Int32

func Int32(a interface{}) interface{}

Int32 returns int32(a)

func Int64

func Int64(a interface{}) interface{}

Int64 returns int64(a)

func Int8

func Int8(a interface{}) interface{}

Int8 returns int8(a)

func LE

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

LE returns a <= b

func LT

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

LT returns a < b

func Len

func Len(a interface{}) int

Len returns length of a collection object. object can be a slice, an array, a map, a string or a chan.

func Lshr

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

Lshr returns a << b

func MapFrom

func MapFrom(args ...interface{}) interface{}

MapFrom creates a map from args.

func MapOf

func MapOf(key, val interface{}) interface{}

MapOf makes a map type.

func Max

func Max(args ...interface{}) (max interface{})

Max returns max(a1, a2, ...)

func Min

func Min(args ...interface{}) (min interface{})

Min returns min(a1, a2, ...)

func Mkmap

func Mkmap(typ interface{}, n ...int) interface{}

Mkmap makes a new map object.

func Mkslice

func Mkslice(typ interface{}, args ...interface{}) interface{}

Mkslice returns a new slice.

func Mod

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

Mod returns a%b

func Mul

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

Mul returns a*b

func NE

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

NE returns a != b

func Neg

func Neg(a interface{}) interface{}

Neg returns -a

func Not

func Not(a interface{}) interface{}

Not returns !a

func Panic

func Panic(v interface{})

Panic panics with v.

func Panicf

func Panicf(format string, args ...interface{})

Panicf panics with sprintf(format, args...).

func Quo

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

Quo returns a/b

func Rshr

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

Rshr returns a >> b

func Set

func Set(m interface{}, args ...interface{})

Set sets (index, value) pairs to an object. object can be a slice, an array, a map or a user-defined class.

func SetIndex

func SetIndex(m, key, v interface{})

SetIndex sets a (index, value) pair to an object. object can be a slice, an array, a map or a user-defined class.

func SliceFrom

func SliceFrom(args ...interface{}) interface{}

SliceFrom creates a slice from args.

func SliceOf

func SliceOf(typ interface{}) interface{}

SliceOf makes a slice type.

func String

func String(a interface{}) interface{}

String returns string(a)

func Sub

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

Sub returns a-b

func SubSlice

func SubSlice(a, i, j interface{}) interface{}

SubSlice returns a[i:j]. if i == nil it returns a[:j]. if j == nil it returns a[i:].

func Uint

func Uint(a interface{}) interface{}

Uint returns uint(a)

func Uint16

func Uint16(a interface{}) interface{}

Uint16 returns uint16(a)

func Uint32

func Uint32(a interface{}) interface{}

Uint32 returns uint32(a)

func Uint64

func Uint64(a interface{}) interface{}

Uint64 returns uint64(a)

func Xor

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

Xor returns a ^ b

Types

This section is empty.

Jump to

Keyboard shortcuts

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