asset

package
v0.0.0-...-ac7d4c8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte2Number

func Byte2Number(b []byte, data interface{})

将byte转换成数字类型 输入:b=byte,data=要转换输出的变量'请输入指针

func Byte2Str

func Byte2Str(bt []byte, dilimiter string) string

将byte类型转换成字符串,例如[]byte{1,2,3,4,5}转换成"1,2,3,4,5" 输入:bt=字节码,dilimiter=连接字符串

func Hex2Byte

func Hex2Byte(str []string) (bt []byte, err error)

16进制字符串转换为byte数据

func Number2Byte

func Number2Byte(data interface{}) []byte

数字转换成byte类型

func Str2Byte

func Str2Byte(str []string) (bt []byte, err error)

将字符串转换为byte数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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