Documentation ¶
Index ¶
- Variables
- func CheckDirectoryFmt(path string) string
- func Copy(sourceImage, destinationImage string) error
- func DownloadImage(url string, imagePath string) (string, error)
- func ExpandHomeDir(path string) string
- func FileExists(path string) bool
- func FormatString(a interface{}) string
- func GetFontWidth() (float32, float32)
- func GetFormattedString(s string, width int) string
- func GetMatchedString(a []int, s, color string) string
- func GetNetwork(ntype, mport, naddress string) (string, string)
- func GetWidth() *winsize
- func InsertAt(inputString, stringTobeInserted string, index int) string
- func IsSame[K comparable](a []K, b []K) bool
- func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
- func Pop[T comparable](index int, a []T) []T
- func Print(color, text string)
- func StrTime(e float64) string
- func Unique(intSlice []int) []int
- type Stack
Constants ¶
This section is empty.
Variables ¶
View Source
var (
COLORS map[string]string = map[string]string{
"RESET": "\033[0m",
"RED": "\033[31m",
"GREEN": "\033[32m",
"YELLOW": "\033[33m",
"BLUE": "\033[34m",
"PURPLE": "\033[35m",
"CYAN": "\033[36m",
"GRAY": "\033[37m",
"WHITE": "\033[97m",
}
)
Functions ¶
func CheckDirectoryFmt ¶
func ExpandHomeDir ¶
func FileExists ¶
func FormatString ¶
func FormatString(a interface{}) string
func GetFontWidth ¶
func GetFormattedString ¶
func GetMatchedString ¶
func GetNetwork ¶
func IsSame ¶
func IsSame[K comparable](a []K, b []K) bool
func MergeMaps ¶
func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
func Pop ¶
func Pop[T comparable](index int, a []T) []T
Types ¶
Click to show internal directories.
Click to hide internal directories.