convert

package
v0.0.0-...-a0f9f5f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(val interface{}) (b bool, ok bool)

GetBool returns the value associated with the key as a boolean.

func GetDuration

func GetDuration(val interface{}) (d time.Duration, ok bool)

GetDuration returns the value associated with the key as a duration.

func GetFloat64

func GetFloat64(val interface{}) (f64 float64, ok bool)

GetFloat64 returns the value associated with the key as a float64.

func GetInt

func GetInt(val interface{}) (i int, ok bool)

GetInt returns the value associated with the key as an integer.

func GetInt64

func GetInt64(val interface{}) (i64 int64, ok bool)

GetInt64 returns the value associated with the key as an integer.

func GetString

func GetString(val interface{}) (s string, ok bool)

func GetTime

func GetTime(val interface{}) (t time.Time, ok bool)

GetTime returns the value associated with the key as time.

func GetUint

func GetUint(val interface{}) (ui uint, ok bool)

GetUint returns the value associated with the key as an unsigned integer.

func GetUint64

func GetUint64(val interface{}) (ui64 uint64, ok bool)

GetUint64 returns the value associated with the key as an unsigned integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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