protocol

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBytesFromKeyValue

func GetBytesFromKeyValue(key any, value any) ([]byte, error)

Key-Value模型两个基本数据类型值转换字节数组

func GetBytesFromStruct

func GetBytesFromStruct(obj any) ([]byte, error)

func GetBytesFromValue

func GetBytesFromValue(data any) ([]byte, error)

单个基本类型值转字节数组

func GetKeyValueFromBytes

func GetKeyValueFromBytes(data []byte) (any, any, error)

字节数组转换两个基本类型值,Key-Value模型

func GetStructFromBytes

func GetStructFromBytes(data []byte, target any) error

func GetValueFromBytes

func GetValueFromBytes(data []byte) (any, error)

字节数据转单个基本类型值

Types

This section is empty.

Source Files

  • protocol.go

Jump to

Keyboard shortcuts

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