aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2018-04-11 15:37:16 -0700
committerMatthew Dempsky <mdempsky@google.com>2018-04-11 23:35:42 +0000
commit8f6ae3379615c6e9dcf47bafc74710a1346a932e (patch)
tree0e17f8407e66306ce46123d4dee900f187659d85 /src/database/sql/sql.go
parent044d2d5af62001665cc28ce78757fc2831e78eeb (diff)
downloadgo-8f6ae3379615c6e9dcf47bafc74710a1346a932e.tar.xz
cmd/compile, cmd/link: encode cgo directives using JSON
The standard library has plenty of polished encoder/decoder implementations. No need for another ad-hoc one. I considered using encoding/gob instead, but these strings go into the package data part of the object file, so it's important they don't contain "\n$$\n". Package json escapes newlines in strings, so it's safe to use here. Change-Id: I998655524ccee7365c2c8e9a843e6975e95a3e62 Reviewed-on: https://go-review.googlesource.com/106463 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions