conv

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTo

func ConvertTo(t, k string, obj interface{}) (val interface{}, err error)

func ConvertToArray

func ConvertToArray(obj interface{}) (val []interface{}, err error)

func ConvertToBoolean

func ConvertToBoolean(obj interface{}) (val bool, err error)

func ConvertToDatetime

func ConvertToDatetime(obj interface{}) (val time.Time, err error)

func ConvertToNumber

func ConvertToNumber(obj interface{}) (val float64, err error)

func ConvertToObject

func ConvertToObject(obj interface{}) (val map[string]interface{}, err error)

func ConvertToRecord

func ConvertToRecord(obj interface{}, tb string) (val *sql.Thing, err error)

func ConvertToString

func ConvertToString(obj interface{}) (val string, err error)

func MightBe

func MightBe(obj interface{}) (val interface{}, ok bool)

func MightBeDatetime

func MightBeDatetime(obj string) (val interface{}, ok bool)

func MightBeRecord

func MightBeRecord(obj string) (val interface{}, ok bool)

func MustBe

func MustBe(t, obj interface{}) (val interface{})

func MustBeArray

func MustBeArray(obj interface{}) (val interface{})

func MustBeObject

func MustBeObject(obj interface{}) (val interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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