helper

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2s

func B2s(b []byte) string

func Contains

func Contains(s []string, str string) bool

func CreateLogDirIfNotExist

func CreateLogDirIfNotExist(logDir string) error

func FindIndex

func FindIndex[T comparable](s []T, value T) (int, error)

func GetLogFile

func GetLogFile() string

func GetLogFolder

func GetLogFolder() string

func HashFunc

func HashFunc(b []byte) uint32

func IsFileExist added in v0.3.0

func IsFileExist(file string) error

func Remove

func Remove[T any](s []T, index int) []T

func RemoveByValue

func RemoveByValue[T comparable](s []T, value T) []T

func S2b

func S2b(s string) (b []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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