From 31fa136b4938e0775e763b1315f67af0de1cc3c7 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Thu, 20 Nov 2025 19:10:15 -0800 Subject: [PATCH] msg: rename functions for ergonomics. --- go.sum | 6 +----- msg/msg.go | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/go.sum b/go.sum index 64902e2..511d4af 100644 --- a/go.sum +++ b/go.sum @@ -29,19 +29,15 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.39.0 h1:SHs+kF4LP+f+p14esP5jAoDpHU8Gu/v9lFRK6IT5imM= golang.org/x/crypto v0.39.0/go.mod h1:L+Xg3Wf6HoL4Bn4238Z6ft6KfEpN0tJGo53AAPC632U= -golang.org/x/crypto v0.44.0 h1:A97SsFvM3AIwEEmTBiaxPPTYpDC47w720rdiiUvgoAU= -golang.org/x/crypto v0.44.0/go.mod h1:013i+Nw79BMiQiMsOPcVCB5ZIJbYkerPrGnOa00tvmc= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= -golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg= -golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU= -golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= +golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= diff --git a/msg/msg.go b/msg/msg.go index 41eef08..5846efb 100644 --- a/msg/msg.go +++ b/msg/msg.go @@ -2,11 +2,11 @@ // flags for quiet, verbose, and debug modes. The default is to // have all modes disabled. // -// The QPrint messages will only output messages if quiet mode is +// The Qprint messages will only output messages if quiet mode is // disabled -// The VPrint messages will only output messages if verbose mode +// The Vprint messages will only output messages if verbose mode // is enabled. -// The DPrint messages will only output messages if debug mode +// The Dprint messages will only output messages if debug mode // is enabled. package msg @@ -44,7 +44,7 @@ func Set(q, v, d bool) { SetDebug(d) } -func QPrint(a ...any) { +func Qprint(a ...any) { if enableQuiet { return } @@ -52,7 +52,7 @@ func QPrint(a ...any) { fmt.Fprint(w, a...) } -func QPrintf(format string, a ...any) { +func Qprintf(format string, a ...any) { if enableQuiet { return } @@ -60,7 +60,7 @@ func QPrintf(format string, a ...any) { fmt.Fprintf(w, format, a...) } -func QPrintln(a ...any) { +func Qprintln(a ...any) { if enableQuiet { return } @@ -68,15 +68,15 @@ func QPrintln(a ...any) { fmt.Fprintln(w, a...) } -func DPrint(a ...any) { +func Dprint(a ...any) { debug.Print(a...) } -func DPrintf(format string, a ...any) { +func Dprintf(format string, a ...any) { debug.Printf(format, a...) } -func DPrintln(a ...any) { +func Dprintln(a ...any) { debug.Println(a...) } @@ -84,7 +84,7 @@ func StackTrace() { debug.StackTrace() } -func VPrint(a ...any) { +func Vprint(a ...any) { if !enableVerbose { return } @@ -92,7 +92,7 @@ func VPrint(a ...any) { fmt.Fprint(w, a...) } -func VPrintf(format string, a ...any) { +func Vprintf(format string, a ...any) { if !enableVerbose { return } @@ -100,7 +100,7 @@ func VPrintf(format string, a ...any) { fmt.Fprintf(w, format, a...) } -func VPrintln(a ...any) { +func Vprintln(a ...any) { if !enableVerbose { return }