diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-26 22:45:39 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-29 02:14:51 -0700 |
commit | c14af2a4eb80811e8fb25502b4a07ad2f33804c2 (patch) | |
tree | 02c0661b262e4014dbec808d794b19660068d2fd /misc.go | |
parent | 5f6408eef2499b1ed35e215c581647d78dca1557 (diff) |
.golangci.yml: Turn on formatting linters 'gci' and 'gofumpt', fix
All formatting changes are made by
./tools/bin/golangci-lint run --fix ./...
Diffstat (limited to 'misc.go')
-rw-r--r-- | misc.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -149,6 +149,7 @@ func writeStringUnicodeEscape(w io.Writer, c rune) (int, error) { } return w.Write(buf[:]) } + func writeStringShortEscape(w io.Writer, c rune) (int, error) { var b byte switch c { @@ -170,6 +171,7 @@ func writeStringShortEscape(w io.Writer, c rune) (int, error) { buf := [2]byte{'\\', b} return w.Write(buf[:]) } + func writeStringChar(w io.Writer, c rune, wasEscaped BackslashEscapeMode, escaper BackslashEscaper) (int, error) { if escaper == nil { escaper = EscapeDefault |