variant

package
v0.0.0-...-b05aa3b Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package variant provide cast functions to convert between string and number types, these functions will never panic nor raise error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(x interface{}) bool

func Complex128

func Complex128(x interface{}) (ret complex128)

func Complex64

func Complex64(x interface{}) (ret complex64)

func Float32

func Float32(x interface{}) float32

func Float64

func Float64(x interface{}) float64

func Int

func Int(x interface{}) (ret int)

func Int16

func Int16(x interface{}) int16

func Int32

func Int32(x interface{}) int32

func Int64

func Int64(x interface{}) int64

func Int8

func Int8(x interface{}) int8

func String

func String(x interface{}) string

func Uint

func Uint(x interface{}) (ret uint)

func Uint16

func Uint16(x interface{}) uint16

func Uint32

func Uint32(x interface{}) uint32

func Uint64

func Uint64(x interface{}) uint64

func Uint8

func Uint8(x interface{}) uint8

func Uintptr

func Uintptr(x interface{}) (ret uintptr)

Types

This section is empty.

Jump to

Keyboard shortcuts

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