<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/walk/walk.go
diff options
context:
space:
mode:
Diffstat (limited to 'walk/walk.go')
-rw-r--r--walk/walk.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/walk/walk.go b/walk/walk.go
index d71ae44..33e5554 100644
--- a/walk/walk.go
+++ b/walk/walk.go
@@ -312,7 +312,7 @@ func jsonOutValue(in *WalkItemStream, indent int, doIndent bool) WalkValue {
if !hasToken {
panic("Missing JSON token in output")
}
- switch token.Value.(type) {
+ switch v := token.Value.(type) {
case ValueNull:
if doIndent {
printIndent(indent)
@@ -339,7 +339,7 @@ func jsonOutValue(in *WalkItemStream, indent int, doIndent bool) WalkValue {
if doIndent {
printIndent(indent)
}
- fmt.Printf("%q", token.Value)
+ fmt.Printf("%q", string(v))
return nil
case TerminalValue:
switch token.Value.(TerminalValue) {