obj

package
v0.0.0-...-9d0e06d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromStringArray

func FromStringArray(strArray []string) (ret []interface{})

FromStringArray converte um array de string em um array de interfce

func GetFieldValue

func GetFieldValue(v interface{}, fieldName string) (result string)

func IsInstanceOf

func IsInstanceOf(objectPtr, typePtr interface{}) bool

func IsInterfaceNil

func IsInterfaceNil(value interface{}) bool

func IsInterfacePointer

func IsInterfacePointer(v interface{}) bool

func IsTime

func IsTime(value interface{}) bool

func IsZeroValue

func IsZeroValue(x interface{}) bool

func ToBool

func ToBool(defaultValue bool, value interface{}) bool

func ToDatetime

func ToDatetime(val interface{}) (result time.Time)

func ToFloat

func ToFloat(val interface{}) (result float64)

func ToInt

func ToInt(val interface{}) (result int)

func ToIntArray

func ToIntArray(val interface{}) []int

ToIntArray convert interface into array of int

func ToInterfaceArray

func ToInterfaceArray(val []string) (result []interface{})

func ToString

func ToString(defaultValue string, val interface{}) (strValue string)

ToString converte uma interface em string

func ToStringArray

func ToStringArray(val interface{}) (result []string)

ToStringArray convert interface into array of string

func ToStringAsArray

func ToStringAsArray(val interface{}, separation string, quote bool) (result string)

ToStringAsArray convert slice of inteface into a string with separation character

func ToUInt32

func ToUInt32(val interface{}) uint32

ToInt convert interface to int32, if val is not a valid int32 value, zero will be returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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