You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
305 B
Go
23 lines
305 B
Go
package pocsag
|
|
|
|
import (
|
|
"github.com/fatih/color"
|
|
)
|
|
|
|
var (
|
|
DEBUG bool
|
|
LEVEL int
|
|
)
|
|
|
|
var (
|
|
green = color.New(color.FgGreen)
|
|
red = color.New(color.FgRed)
|
|
blue = color.New(color.FgBlue)
|
|
)
|
|
|
|
// Tell the package to print debug data
|
|
func SetDebug(d bool, verbosity int) {
|
|
DEBUG = d
|
|
LEVEL = verbosity
|
|
}
|