typeconv

package
v0.0.0-...-8cea40f Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes[T any](data []byte) T

将[]byte转换为任意类型 不要尝试用此函数转换公私钥 不要尝试用此函数转换big.Int

func FromBytesInto

func FromBytesInto(data []byte, v any)

从字节数组解码到给定变量2

func FromHex

func FromHex(data []byte) []byte

func ToBytes

func ToBytes(data any) []byte

将任意类型转换为[]byte 不要尝试用此函数转换公私钥 不要尝试用此函数转换big.Int

func ToHex

func ToHex(bytes []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳