utils

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DotTicker

func DotTicker() *chan struct{}

DotTicker starts a infinity dot animation and returns a chan to stop.

func GenRandBytes

func GenRandBytes(byteLength int) []byte

GenRandBytes generates a random bytes slice in given length.

func GenRandString

func GenRandString(byteLength int) (uuid string)

GenRandString generates a random string in given length.

func GenRandUUID

func GenRandUUID() string

GenRandUUID generates a random uuid.

func GetType

func GetType(v any) string

func IsDir

func IsDir(path string) bool

IsDir returns true if given path is a folder.

func IsExist

func IsExist(path string) bool

IsExist returns true if given path is exist.

func IsFile

func IsFile(path string) bool

IsDir returns true if given path isn't folder.

func Reverse

func Reverse(s string) string

func Spacer

func Spacer(v string) string

Spacer fixed space between command and description.

func URLSafeEncode

func URLSafeEncode(enc string) string

func URLSafeEncodeByte

func URLSafeEncodeByte(enc []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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