tcast

package module
v0.0.0-...-e520b77 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

type-cast

介绍

Data type conversion.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastBoolToInt

func CastBoolToInt(b bool) int

将bool转换为int

func CastBoolToStr

func CastBoolToStr(b bool) string

将bool转换为string

func CastBytesToReader

func CastBytesToReader(bs []byte) io.Reader

将字节转为读取流

func CastFloatToStr

func CastFloatToStr(n float64) string

将float转换为string bitSize = 64

func CastIntToStr

func CastIntToStr(n int) string

将int转换为string

func CastStrToFloat

func CastStrToFloat(s string) (float64, error)

将string转换为float bitSize = 64

func CastStrToInt

func CastStrToInt(s string) (int64, error)

将string转换为int? bitSize = 64 十进制数值

func DealChinese

func DealChinese(r io.Reader, srcCharset string) (string, error)

func Md5

func Md5(str string) string

md5

Types

type Status

type Status int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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