Commit cd727506 authored by YuviPanda's avatar YuviPanda

Use backtick quotes to avoid excess escaping

parent 97a655d2
...@@ -143,7 +143,7 @@ one: ...@@ -143,7 +143,7 @@ one:
} }
func TestToJson(t *testing.T) { func TestToJson(t *testing.T) {
expect := "{\"foo\":\"bar\"}" expect := `{"foo":"bar"}`
v := struct { v := struct {
Foo string `json:"foo"` Foo string `json:"foo"`
}{ }{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment