require

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Provides convenient types conversion functions.

Index

Constants

This section is empty.

Variables

Functions

func Bool added in v0.1.7

func Bool(value interface{}) bool

func Byte

func Byte(num interface{}) byte

func Float32

func Float32(num interface{}) float32

func Float64

func Float64(num interface{}) float64

func Int

func Int(num interface{}) int

func Int32

func Int32(num interface{}) int32

func Int64

func Int64(num interface{}) int64

func IsNumber

func IsNumber(i interface{}) bool

func Number

func Number(value interface{}, kind reflect.Kind) interface{}

func SiMap

func SiMap(i interface{}) map[string]interface{}

func String

func String(i interface{}, defaultString ...string) string

Returns the given interface{} as string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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