el

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Assert func(expression interface{}, msg ...string)
View Source
var Float32 = elconv.AsFloat32
View Source
var Float64 = elconv.AsFloat64
View Source
var Int64 = elconv.AsInt64
View Source
var IsArray = elref.IsArray
View Source
var IsArrayOrSlice = elref.IsArrayOrSlice
View Source
var IsBool = elref.IsBool
View Source
var IsChan = elref.IsChan
View Source
var IsComplex128 = elref.IsComplex128
View Source
var IsComplex64 = elref.IsComplex64
View Source
var IsEmpty = elref.IsEmpty
View Source
var IsFloat32 = elref.IsFloat32
View Source
var IsFloat64 = elref.IsFloat64
View Source
var IsFunc = elref.IsFunc
View Source
var IsIn = elref.IsIn
View Source
var IsInt = elref.IsInt
View Source
var IsInt16 = elref.IsInt16
View Source
var IsInt32 = elref.IsInt32
View Source
var IsInt64 = elref.IsInt64
View Source
var IsInt8 = elref.IsInt8
View Source
var IsInterface = elref.IsInterface
View Source
var IsMap = elref.IsMap
View Source
var IsNil = elref.IsNil
View Source
var IsNumber = elref.IsNumber
View Source
var IsPtr = elref.IsPtr
View Source
var IsSlice = elref.IsSlice
View Source
var IsString = elref.IsString
View Source
var IsStruct = elref.IsStruct
View Source
var IsUint = elref.IsUint
View Source
var IsUint16 = elref.IsUint16
View Source
var IsUint32 = elref.IsUint32
View Source
var IsUint64 = elref.IsUint64
View Source
var IsUint8 = elref.IsUint8
View Source
var IsUintptr = elref.IsUintptr
View Source
var IsUnsafePointer = elref.IsUnsafePointer
View Source
var PanicIfErr = eldev.PanicIfErr
View Source
var Pointer = elconv.AsPtr
View Source
var Slice = elconv.AsSlice
View Source
var String = elconv.AsStr
View Source
var StructFields = elref.GetStructFields
View Source
var StructValues = elref.GetStructValues
View Source
var Type = elref.Type
View Source
var Uint64 = elconv.AsUint64
View Source
var Value = elconv.AsValue

Functions

func All

func All(v ...bool) bool

If any items in `v` is false, return false. Otherwise, return true. python has same build-in function

func Any

func Any(v ...bool) bool

If any items in `v` is true, return true. Otherwise, return false. python has same build-in function

func FirstNonNil

func FirstNonNil(values ...interface{}) interface{}

FirstNonNil returns the first non nil parameter. If all parameter is nil, return nil.

func IF

func IF(condition bool, first interface{}, second interface{}) interface{}

IF evaluates a condition, if true returns the first parameter otherwise the second

func NotNil

func NotNil(v interface{}, def interface{}) interface{}

NotNil check `v` parameter, if `v` is not nil, return it, otherwise return the default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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