Skip to content

codenamoo/typeconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

typeconv

Type convertor for golang

functions

  • func InterfaceMapToStringMap(src *map[interface{}]interface{}) map[string]interface{}
  • func StringToMap(input string, out *map[string]interface{}) error
  • func ByteArrayToMap(input []byte, out, *map[string]interface{}) error
  • func InterfaceToString(input interface{}) string
  • func InterfaceToInt(input interface{}) (int, error)
  • func InterfaceToInt64(input interface{}) (int, error)
  • func InterfaceToBool(input interface{}) (bool, error)

test

$ go test

About

go type convertor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages