msg: fixes and tests added.
This commit is contained in:
14
msg/msg.go
14
msg/msg.go
@@ -13,6 +13,7 @@ package msg
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"git.wntrmute.dev/kyle/goutils/lib"
|
||||
|
||||
@@ -22,10 +23,19 @@ import (
|
||||
var (
|
||||
enableQuiet bool
|
||||
enableVerbose bool
|
||||
debug = dbg.New()
|
||||
w io.Writer
|
||||
|
||||
debug = dbg.New()
|
||||
w io.Writer = os.Stdout
|
||||
)
|
||||
|
||||
func Reset() {
|
||||
enableQuiet = false
|
||||
enableVerbose = false
|
||||
|
||||
debug = dbg.New()
|
||||
w = os.Stdout
|
||||
}
|
||||
|
||||
func SetQuiet(q bool) {
|
||||
enableQuiet = q
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user