reflect

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEmpty

func CheckEmpty(value interface{}) error

CheckEmpty checks if an interface{} is empty Returns error if the value is nil or empty Returns error if Kind is not Array, Chan, Map, Slice, or String

func Len

func Len(value interface{}) (int, error)

Len checks interface{} length Returns 0 if the value is nil Returns error if Kind is not Array, Chan, Map, Slice, or String

Types

type UnexpectedEmptyValue

type UnexpectedEmptyValue struct{}

UnexpectedEmptyValue indicates an empty value is not expected in this context

func (*UnexpectedEmptyValue) Error

func (*UnexpectedEmptyValue) Error() string

type UnexpectedNilValue

type UnexpectedNilValue struct{}

UnexpectedNilValue indicates a nil value is not expected in this context

func (*UnexpectedNilValue) Error

func (*UnexpectedNilValue) Error() string

type UnsupportedValueType

type UnsupportedValueType struct {
	// contains filtered or unexported fields
}

UnsupportedValueType indicates a value type is not supported in this context

func (*UnsupportedValueType) Error

func (u *UnsupportedValueType) Error() string

Jump to

Keyboard shortcuts

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