imports: update zstdlib to Go 1.10

Change-Id: I36e7a5638de2cdcd3523bb3c6c89399586aab938
Reviewed-on: https://go-review.googlesource.com/93195
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2018-02-09 17:38:34 -08:00
parent 70252dea49
commit 95b47aa5df
2 changed files with 1154 additions and 866 deletions

View File

@ -17,6 +17,7 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"regexp" "regexp"
"runtime"
"sort" "sort"
"strings" "strings"
) )
@ -30,7 +31,7 @@ func mustOpen(name string) io.Reader {
} }
func api(base string) string { func api(base string) string {
return filepath.Join(os.Getenv("GOROOT"), "api", base) return filepath.Join(runtime.GOROOT(), "api", base)
} }
var sym = regexp.MustCompile(`^pkg (\S+).*?, (?:var|func|type|const) ([A-Z]\w*)`) var sym = regexp.MustCompile(`^pkg (\S+).*?, (?:var|func|type|const) ([A-Z]\w*)`)
@ -54,6 +55,7 @@ func main() {
mustOpen(api("go1.7.txt")), mustOpen(api("go1.7.txt")),
mustOpen(api("go1.8.txt")), mustOpen(api("go1.8.txt")),
mustOpen(api("go1.9.txt")), mustOpen(api("go1.9.txt")),
mustOpen(api("go1.10.txt")),
) )
sc := bufio.NewScanner(f) sc := bufio.NewScanner(f)
fullImport := map[string]string{} // "zip.NewReader" => "archive/zip" fullImport := map[string]string{} // "zip.NewReader" => "archive/zip"

File diff suppressed because it is too large Load Diff