25 lines
567 B
Go
25 lines
567 B
Go
package smartwindow
|
|
|
|
/*
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
*/
|
|
|
|
import (
|
|
"go.wit.com/log"
|
|
)
|
|
|
|
var NOW *log.LogFlag
|
|
var INFO *log.LogFlag
|
|
var SPEW *log.LogFlag
|
|
var WARN *log.LogFlag
|
|
|
|
func init() {
|
|
full := "go.wit.com/gui/gadgets/smartwindow"
|
|
short := "smartWin"
|
|
|
|
NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
|
|
INFO = log.NewFlag("INFO", false, full, short, "General Info")
|
|
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
|
|
WARN = log.NewFlag("WARN", false, full, short, "bad things")
|
|
}
|