byteutil

package
v0.0.0-...-9c21ab8 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToHexString

func BytesToHexString(bs []byte, delim string) string

将字节数组转成16进制组成的字符串(如MAC地址转换),强制使用

func BytesToIntString

func BytesToIntString(bs []byte, delim string) string

将字节数组转换成10进制组成的字符串(如IP地址转换)

func HexStringToBytes

func HexStringToBytes(s string, delim string) []byte

将16进制数组成的字符串转成字节数组

func IntStringToBytes

func IntStringToBytes(s string, delim string) []byte

将整数组成的字符串转成字节数组

func Md5

func Md5(param ...interface{}) string

func Md5HexString

func Md5HexString(bs []byte) string

func RemoveUUIDDash

func RemoveUUIDDash(uid string) string

func UUID4

func UUID4() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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