slices

package
v0.36.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: AGPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreStringSlicesEqual added in v0.28.0

func AreStringSlicesEqual(a, b []string) bool

AreStringSlicesEqual returns true if the two string slices are equal.

func Concat

func Concat(slices [][]byte) []byte

Concat concatenates multiple []byte into one []byte with efficient one-time allocation.

func EnsureByteSliceSize

func EnsureByteSliceSize(b []byte, length int) []byte

EnsureByteSliceSize returns a copy of input bytes with given length trimming or left-padding with zero bytes accordingly

func MakeRange added in v0.23.9

func MakeRange(min, max int) []int

MakeRange returns a slice of int from [min, max]

func StringSliceContainsElement added in v0.28.0

func StringSliceContainsElement(a []string, v string) bool

StringSliceContainsElement returns true if the string slice contains the element.

Types

This section is empty.

Jump to

Keyboard shortcuts

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