godog/colors.go

20 строки
219 Б
Go

package godog
import "fmt"
type color int
const (
black color = iota + 30
red
green
yellow
blue
magenta
cyan
white
)
func cl(s interface{}, c color) string {
return fmt.Sprintf("\033[%dm%v\033[0m", c, s)
}