utils

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Charset  string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
	AlphaNum string = "abcdefghijklmnopqrstuvwxyz0123456789"
)

Variables

This section is empty.

Functions

func AutoHashLabeler added in v0.17.1

func AutoHashLabeler(s string) string

AutoHashLabeler When a label value is too long ( > 63 chars), send a hash of the string instead

func Copy

func Copy(srcFile, dstFile string) error

func CopyDirectory

func CopyDirectory(scrDir, dest string) error
func CopySymLink(source, dest string) error

func CreateIfNotExists

func CreateIfNotExists(dir string, perm os.FileMode) error

func Exists

func Exists(filePath string) bool

func IsSeq

func IsSeq(arr []int, start *int) bool

func ListContainsStr

func ListContainsStr(s []string, e string) bool

func ListRemoveStr

func ListRemoveStr(list []string, s string) []string

func Pprint

func Pprint(o interface{})

func PrettyStruct

func PrettyStruct(data interface{}) (string, error)

func RandomString

func RandomString(length int) string

func StringWithCharset

func StringWithCharset(length int, charset string) string

func TruncateResourceName

func TruncateResourceName(s string, i int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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