diff options
author | Russ Cox <rsc@golang.org> | 2009-06-29 15:24:23 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-29 15:24:23 -0700 |
commit | 755e009ad2a874373454d488f9ea46648a8a9547 (patch) | |
tree | ed3d700304a76b08cdca0f356605077c58ee0f76 /src/pkg/json/parse.go | |
parent | 24323437280c7f0a166b7f2fae75620470cde0f9 (diff) | |
download | golang-755e009ad2a874373454d488f9ea46648a8a9547.tar.gz |
io.StringBytes -> strings.Bytes
io.ByteBuffer -> bytes.Buffer
left io.ByteBuffer stub around for now,
for protocol compiler.
R=r
OCL=30861
CL=30872
Diffstat (limited to 'src/pkg/json/parse.go')
-rw-r--r-- | src/pkg/json/parse.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/json/parse.go b/src/pkg/json/parse.go index e33b9dbc1..a95d7d215 100644 --- a/src/pkg/json/parse.go +++ b/src/pkg/json/parse.go @@ -11,8 +11,8 @@ package json import ( + "bytes"; "fmt"; - "io"; "math"; "strconv"; "strings"; @@ -127,7 +127,7 @@ func Unquote(s string) (t string, ok bool) { func Quote(s string) string { chr := make([]byte, utf8.UTFMax); chr0 := chr[0:1]; - b := new(io.ByteBuffer); + b := new(bytes.Buffer); chr[0] = '"'; b.Write(chr0); for i := 0; i < len(s); i++ { |