convert

package
v0.0.0-...-457d9f6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2String

func Bytes2String(b []byte) string

Bytes2String 黑魔法转换

func FromBytesToString

func FromBytesToString(b []byte) string

FromBytesToString []byte转为string

func FromStringToBool

func FromStringToBool(s string) (bool, error)

FromStringToBool 把字符串值转为bool

func FromStringToBytes

func FromStringToBytes(s string) []byte

FromStringToBytes 字符串值转为[]byte

func FromStringToFloat

func FromStringToFloat(s string) (float64, error)

FromStringToFloat 字符串转float64

func FromStringToInt

func FromStringToInt(s string) (int, error)

FromStringToInt 把字符串值转换为int

func FromStringToInt64

func FromStringToInt64(s string) (int64, error)

FromStringToInt64 把字符串值转为int64

func FromStringToUint64

func FromStringToUint64(s string) (uint64, error)

FromStringToUint64 把字符串值转为uint64

func String2Bytes

func String2Bytes(s string) []byte

String2Bytes 黑魔法转换

func ToString

func ToString(v interface{}) string

ToString 其他类型转string

Types

This section is empty.

Jump to

Keyboard shortcuts

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