msg: fixes and tests added.

This commit is contained in:
2025-11-20 19:32:27 -08:00
parent 1fceb0e0da
commit 17e9649d1e
2 changed files with 159 additions and 2 deletions

View File

@@ -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
}