summaryrefslogtreecommitdiff
path: root/misc.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc.go')
-rw-r--r--misc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.go b/misc.go
index ecb28ca..c3ce785 100644
--- a/misc.go
+++ b/misc.go
@@ -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