utils

package
v0.0.0-...-15ff628 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteInSlice

func ByteInSlice(b byte, arr []byte) bool

ByteInSlice checks whether a byte is in a slice of bytes.

func IndexAllByte

func IndexAllByte(b []byte, c byte) (indices []int)

IndexAllByte returns all occurrences of a byte in a slice of bytes.

func PathExists

func PathExists(path string) bool

PathExists checks whether a path exists in the filesystem

func StringInSlice

func StringInSlice(s string, sl []string) bool

StringInSlice checks whether a string is in a slice of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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