cast

package
v0.0.38-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToNullableBool

func ConvertToNullableBool(b bool) *bool

func ToBool

func ToBool(v interface{}) (bool, error)

func ToFloat

func ToFloat(v interface{}) (float64, error)

We need both a float64 and float32 in the long run. Just always use float64 until API changes db returns float64 so we should just do that.

func ToInt

func ToInt(v interface{}) (int, error)

func ToInt64

func ToInt64(v interface{}) (int64, error)

func ToNullableBool

func ToNullableBool(v interface{}) (*bool, error)

func ToNullableFloat

func ToNullableFloat(v interface{}) (*float64, error)

func ToNullableInt

func ToNullableInt(v interface{}) (*int, error)

func ToNullableInt64

func ToNullableInt64(v interface{}) (*int64, error)

func ToNullableString

func ToNullableString(v interface{}) (*string, error)

TODO test nullable versions here...

func ToNullableTime

func ToNullableTime(v interface{}) (*time.Time, error)

func ToNullableUUIDString

func ToNullableUUIDString(v interface{}) (*string, error)

func ToString

func ToString(v interface{}) (string, error)

func ToTime

func ToTime(v interface{}) (time.Time, error)

func ToUUIDString

func ToUUIDString(v interface{}) (string, error)

func UnmarshallJSON

func UnmarshallJSON(src interface{}, dest interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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