bytes

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(b []byte) []byte

Copy возврашает копию среза b.

func Equal

func Equal(a, b []byte) bool

Equal проверяе, являются ли преданные срезы a и b эквивалентными.

func Extend

func Extend(b []byte, needLen int) []byte

Extend расширяет срез b до заданного размера.

func Prepend

func Prepend(dst []byte, src ...byte) []byte

Prepend добавляет src в переданный срез dst.

func PrependString

func PrependString(dst []byte, src string) []byte

PrependString добавляет строку в переданный байтовый срез dst.

func Rand

func Rand(dst []byte) []byte

Rand заполняет dst случайным набором символов латинского алфавита. Необходимое условие: len(dst) > 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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