bytesKit

package
v1.30.16 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(bytes []byte) string

BytesToString []byte => string

PS: (1) 参考了 gin(v1.8.1) 中的 internal/bytesconv/bytesconv.go ,后续要及时同步更新此方法! (2) 必须满足的条件:对数据仅仅只有读操作!!!

func StringToBytes

func StringToBytes(str string) []byte

StringToBytes string => []byte

PS: (1) 参考了 gin(v1.8.1) 中的 internal/bytesconv/bytesconv.go ,后续要及时同步更新此方法! (2) 必须满足的条件:对数据仅仅只有读操作!!!

Types

This section is empty.

Jump to

Keyboard shortcuts

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