summaryrefslogtreecommitdiff
path: root/lib/fmtutil
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-08-17 20:26:52 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-08-17 22:41:05 -0600
commit273890421b31aa7b43d778e4da3de16659e77d73 (patch)
treea46cd884fe2132a6c69d7d1f9c8ddc84509b4afa /lib/fmtutil
parent6fc662d5faa238cc71d06c2c888858747c55c55a (diff)
tools: Upgrade to Go 1.19
1. Edit Makefile:goversion 2. Run `make go-mod-tidy` 3. Run `gofmt -s -w .` 4. Look at the ignore-whitespace-change diff and fixup band gofmt changes
Diffstat (limited to 'lib/fmtutil')
-rw-r--r--lib/fmtutil/fmt.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/fmtutil/fmt.go b/lib/fmtutil/fmt.go
index a45ac58..3898046 100644
--- a/lib/fmtutil/fmt.go
+++ b/lib/fmtutil/fmt.go
@@ -37,15 +37,15 @@ func FmtStateString(st fmt.State, verb rune) string {
// fmt.Formatter for []byte or [n]byte types that have a custom string
// representation. Use it like:
//
-// type MyType [16]byte
+// type MyType [16]byte
//
-// func (val MyType) String() string {
-// …
-// }
+// func (val MyType) String() string {
+// …
+// }
//
-// func (val MyType) Format(f fmt.State, verb rune) {
-// util.FormatByteArrayStringer(val, val[:], f, verb)
-// }
+// func (val MyType) Format(f fmt.State, verb rune) {
+// util.FormatByteArrayStringer(val, val[:], f, verb)
+// }
func FormatByteArrayStringer(
obj interface {
fmt.Stringer