byt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(haystack []byte, needles ...[]byte) bool

func Duplicate

func Duplicate(b []byte, times int) [][]byte

func EndWith

func EndWith(haystack []byte, needle []byte) bool

EndWith alias of bytes.HasSuffix

func RandBytes

func RandBytes(n int) []byte

func StartWith

func StartWith(haystack []byte, needle []byte) bool

StartWith alias of bytes.HasPrefix

func ToBool

func ToBool(b []byte) (bool, error)

func ToFloat64

func ToFloat64(b []byte) (float64, error)

func ToInt64

func ToInt64(b []byte) (int64, error)

func ToString

func ToString(b []byte) string

func ToUint64

func ToUint64(b []byte) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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