imports: add unsafe symbols to zstdlib

Change-Id: Ia5856e2197925671ebaa5e673af3e97fad1cdaee
Reviewed-on: https://go-review.googlesource.com/24463
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2016-06-24 15:27:06 -07:00
parent 8b3828f1c8
commit 1727758746
2 changed files with 10 additions and 0 deletions

View File

@ -86,6 +86,10 @@ func main() {
outf("\t%q: %q,\n", key, fullImport[key])
}
}
outf("\n")
for _, sym := range [...]string{"Alignof", "ArbitraryType", "Offsetof", "Pointer", "Sizeof"} {
outf("\t%q: %q,\n", "unsafe."+sym, "unsafe")
}
outf("}\n")
fmtbuf, err := format.Source(buf.Bytes())
if err != nil {

View File

@ -9153,4 +9153,10 @@ var stdlib = map[string]string{
"zlib.NoCompression": "compress/zlib",
"zlib.Resetter": "compress/zlib",
"zlib.Writer": "compress/zlib",
"unsafe.Alignof": "unsafe",
"unsafe.ArbitraryType": "unsafe",
"unsafe.Offsetof": "unsafe",
"unsafe.Pointer": "unsafe",
"unsafe.Sizeof": "unsafe",
}