utils

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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