coerce

package
v0.0.0-...-21754ba Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromString

func FromString(s string) interface{}

FromString attempts to identify a supported type in s, and converts to it

func IsInteger

func IsInteger(v interface{}) bool

func IsNumeric

func IsNumeric(v interface{}) bool

func IsScalar

func IsScalar(v interface{}) bool

func IsScalarStrict

func IsScalarStrict(v interface{}) bool

func ToBool

func ToBool(v interface{}) bool

func ToByte

func ToByte(v interface{}) byte

func ToComplex128

func ToComplex128(v interface{}) complex128

func ToFloat64

func ToFloat64(v interface{}) float64

func ToFloat64Suffix

func ToFloat64Suffix(v interface{}) float64

func ToInt64

func ToInt64(v interface{}) int64

func ToInt64Suffix

func ToInt64Suffix(v interface{}) int64

func ToNumeric

func ToNumeric(v interface{}) (i int64, f float64, isint bool)

func ToString

func ToString(v interface{}) string

func ToUint64

func ToUint64(v interface{}) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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