mirror of
https://gitea.com/jolheiser/sip
synced 2024-11-23 04:12:00 +01:00
5b7b970a06
Signed-off-by: jolheiser <john.olheiser@gmail.com>
20 lines
359 B
Go
20 lines
359 B
Go
package stdout
|
|
|
|
import (
|
|
"fmt"
|
|
"gitea.com/jolheiser/beaver/color"
|
|
)
|
|
|
|
var (
|
|
red = color.New(color.FgRed)
|
|
green = color.New(color.FgGreen)
|
|
)
|
|
|
|
func Red(format string, args ...interface{}) {
|
|
fmt.Println(red.Format(fmt.Sprintf(format, args...)))
|
|
}
|
|
|
|
func Green(format string, args ...interface{}) {
|
|
fmt.Println(green.Format(fmt.Sprintf(format, args...)))
|
|
}
|