util

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToSliceStr

func AppendToSliceStr(strs *[]string, suffix string)

func CastStrings2ints

func CastStrings2ints(strs *[]string) []int

func Escape added in v0.0.2

func Escape(str string, c rune) string

func EscapeBt added in v0.0.2

func EscapeBt(str string) string

func EscapeDquote added in v0.0.2

func EscapeDquote(str string) string

func EscapeSquote added in v0.0.2

func EscapeSquote(str string) string

func GetBytesAsHex added in v0.0.2

func GetBytesAsHex(key []byte) []byte

func GetBytesFromHex added in v0.0.2

func GetBytesFromHex(key []byte) []byte

func InArray added in v0.0.30

func InArray(v interface{}, arr interface{}) int

func InspectStruct added in v0.0.17

func InspectStruct(a any) (map[string]string, bool)

func PrependToSliceStr

func PrependToSliceStr(strs *[]string, prefix string)

func PrettyByteSize added in v0.0.2

func PrettyByteSize(b int64) string

func RemoveExtension added in v0.0.2

func RemoveExtension(fileName string) string

func Str2int

func Str2int(str string, base int, fallback int) int

func Str2int64

func Str2int64(str string, base int, fallback int64) int64

func Ucfirst added in v0.0.2

func Ucfirst(str *string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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