Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Green ¶
Green returns the string s wrapped in ANSI color codes for green.
Parameters:
- s: the string to color
Returns:
- the string s wrapped in ANSI color codes for green
func Red ¶
Red returns the string s wrapped in ANSI color codes for red.
Parameters:
- s: the string to color
Returns:
- the string s wrapped in ANSI color codes for red
func Ternary ¶
Ternary is a simple ternary operator for Go. It returns the first value if the condition is true, otherwise the second value.
Parameters:
- condition: the condition to check
- first: the value to return if the condition is true
- second: the value to return if the condition is false
Returns:
- the first value if the condition is true, otherwise the second value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.