Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatters ¶
type Formatters struct { Bold func(s string) string SQuote func(s string) string PQuote func(s string) string DQuote func(s string) string QQuote func(s string) string Upcase func(s string) string Downcase func(s string) string HumanFromUnixDate func(unixTime int64) string HumanDiskSize func(size uint64) string Human func(a any) string DateString func() string TimeString func() string TrimRepeatingCharacters func(s string, c string) string DateTimeString func() string TimeAgo func(t string) string FormatDate func(t time.Time) string FormatDuration func(t time.Duration) string }
func InitFormatters ¶
func InitFormatters() *Formatters
type Helpers ¶
type Helpers struct { RandomIP func() string RandomMAC func() string RandomPort func() int RandomFloat func(min int, max int) float64 ToInt func(s string) int ToString func(i int) string CoinToss func() bool IsInt func(i string) bool GetHostName func() string GetUserName func() (string, error) GetSytemInfo func() string RoundFloatToTwoDPS func(f float64) float64 IsActionIn func(action string, actionToCheck ...*actn.Action) bool }
func InitHelpers ¶
func InitHelpers() *Helpers
type Styles ¶
type Styles struct { Reset string RED string GREEN string YELLOW string BLUE string MAGENTA string CYAN string GREY string GRAY string WHITE string BOLD string UNDERLINE string ClearLine string Red func(s string) string Green func(s string) string Yellow func(s string) string Blue func(s string) string Magenta func(s string) string Cyan func(s string) string Grey func(s string) string Gray func(s string) string White func(s string) string Bold func(s string) string Underline func(s string) string }
func InitStyles ¶
func InitStyles() *Styles
Click to show internal directories.
Click to hide internal directories.