Skip to content
/ convert Public

golang convert type utils | golang类型转换工具

License

Notifications You must be signed in to change notification settings

dmskys/convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert

golang convert type utils | golang类型转换工具

init package

go get github.com/dmskys/convert

How To Use

import (
    "github.com/dmskys/convert"
)
func main(){
	convert.ToStr(1)
	convert.BinToDec([]byte{1, 2})
	convert.DecToBin(1)
	convert.StrToInt("1")
	convert.StrToInt8("2")
	convert.Float32ToStr(1.234, 2)
	convert.Float64ToStr(1.3445, 3)
	convert.AddSingleQuotes(1)
}

About

golang convert type utils | golang类型转换工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages