Documentation ¶
Index ¶
- func ConcatWords(joiner []byte, words ...[]byte) string
- func CustomFormat(s []byte, kwargs map[string][]byte) []byte
- func GetCurrentDateTimeWithTimeZoneShift(userTimeZone string) (string, int, int, int, string, string)
- func PrintRainbow(message string)
- func Printer(tag string, message string, color string)
- type Prompts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatWords ¶
This is a fast approach for concatenating strings in Go strings.Join is optimized for this purpose and generally faster than manual concatenation
func CustomFormat ¶
CustomFormat is a placeholder for your existing CustomFormat function Implement this function according to your needs
func GetCurrentDateTimeWithTimeZoneShift ¶ added in v0.0.4
func GetCurrentDateTimeWithTimeZoneShift(userTimeZone string) (string, int, int, int, string, string)
GetCurrentDateTime returns the current date and time details in a different format. It returns six values: the current date in "YYYY-MM-DD" format, the current year, the current month, the current day, the current day of the week, and the current time in "03:04 PM MST" format. Returns: - string: Current date in "YYYY-MM-DD" format. - int: Current year. - int: Current month as an integer. - int: Current day of the month. - string: Current day of the week. - string: Current time in "03:04 PM MST" format.
func PrintRainbow ¶ added in v0.0.4
func PrintRainbow(message string)
Helper function to print rainbow text
func Printer ¶
Printer formats and prints a message with specified color and tag. It now supports an expanded set of colors based on the ANSI 256-color palette. Args: - message string: The message to be color formatted - tag string: The color code tag - color string: The color to be used (now supports extended color codes) Returns: - Prints the formatted message to log output