byteshelper

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveFunc added in v0.12.0

func RemoveFunc(p []byte, match func(r rune) bool) (n int)

RemoveFunc removes all matched runes in p, the return value n is the new size of p and n is always no greater than len(p).

func ToString

func ToString[B ~byte](s []B) string

ToString returns string view of byte slice s (zero allocation) this is different from `string(*s)`

Types

This section is empty.

Jump to

Keyboard shortcuts

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