internal

package
v2.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2Bool

func Bytes2Bool(data []byte) bool

Bytes2Bool 字节切片转换为bool

func Bytes2Float64

func Bytes2Float64(data []byte) float64

Bytes2Float64 字节切片转换为float64

func Bytes2Int16 added in v2.0.9

func Bytes2Int16(data []byte) int16

Bytes2Int16 字节切片转换为int16

func Bytes2Int32 added in v2.0.9

func Bytes2Int32(data []byte) int32

Bytes2Int32 字节切片转换为int32

func Bytes2Int64

func Bytes2Int64(data []byte) int64

Bytes2Int64 字节切片转换为int64

func Bytes2Int8 added in v2.0.9

func Bytes2Int8(data []byte) int8

Bytes2Int8 字节切片转换为int8

func Bytes2String

func Bytes2String(data []byte) string

Bytes2String 字节切片转换为字符串

func Bytes2Uint16 added in v2.0.9

func Bytes2Uint16(data []byte) uint16

Bytes2Uint16 字节切片转换为uint16

func Bytes2Uint32

func Bytes2Uint32(data []byte) uint32

Bytes2Uint32 字节切片转换为uint32

func Bytes2Uint64

func Bytes2Uint64(data []byte) uint64

Bytes2Uint64 字节切片转换为uint64

func Bytes2Uint8 added in v2.0.9

func Bytes2Uint8(data []byte) uint8

Bytes2Uint8 字节切片转换为uint8

func FileExists added in v2.0.9

func FileExists(fileName string) (exists bool, err error)

FileExists 判断文件是否存在

func FileTime

func FileTime(fileName string) (createTime, lastAccessTime, lastWriteTime int64, err error)

func LcFirst

func LcFirst(str string) string

func MkDir added in v2.0.9

func MkDir(dir string, perm os.FileMode) (err error)

MkDir 创建目录

func String2Bytes

func String2Bytes(data string) []byte

String2Bytes 字符串转字节切片,注意:转换后不能对字节切片进行修改

func UcFirst

func UcFirst(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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