utils

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(data string) (res []byte)

Bytes convert string to []byte

func CompareBytes added in v0.16.0

func CompareBytes(b1, b2 []byte) (res int)

CompareBytes compare b1 and b2, 1 if b1>b2, 0 if b1==b2, -1 if b1<b2

func EqualBytes added in v0.16.0

func EqualBytes(b1, b2 []byte) bool

EqualBytes compare b1 == b2

func String

func String(data []byte) (res string)

String convert bytes to string

Types

This section is empty.

Jump to

Keyboard shortcuts

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