bytes

package
v0.0.0-...-e67ccf8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contain

func Contain(b []byte, ele byte) bool

Contain 判断字节切片b是否包含ele元素

func Copy

func Copy(src []byte) (b []byte)

func Equal

func Equal(a, b []byte) bool

Equal 判断两个字节切片每个元素是否相等

func Int64

func Int64(b []byte) (v int64, err error)

func Remove

func Remove(b *[]byte, eles ...byte)

Remove 对于eles的每个元素,只删除一次

func RemoveAll

func RemoveAll(b *[]byte, eles ...byte)

RemoveAll 删除所有的ele

func Reverse

func Reverse(b []byte)

Reverse 翻转字节切片

func String

func String(b []byte) string

String []byte转换为string

Types

This section is empty.

Jump to

Keyboard shortcuts

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