typeconv

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 3 Imported by: 77

README

typeconv

Type conversion module for golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert added in v0.0.2

func Convert(val interface{}, targetType reflect.Type) reflect.Value

try to convert value to target type, panic if fail

func Float

func Float(v interface{}) float64

func FloatTuple

func FloatTuple(v interface{}) []float64

func Int

func Int(v interface{}) int64

func IntTuple

func IntTuple(v interface{}) []int64

func MapStringAnything added in v0.0.3

func MapStringAnything(v interface{}) map[string]interface{}

func String added in v0.0.2

func String(v interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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