I want some text to be colored red and green. if the value < 0
then the color will be red and if the value > 0
then color will be green:
if x < 0 {
fmt.Println("This line will be Red")
} else {
fmt.Println("This line will be Green")
}
I want to know how to do that with the standard library not with third party pkg. How I can do that?