]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add functions to read index file
authorMichael Matloob <matloob@golang.org>
Tue, 5 Apr 2022 22:47:23 +0000 (18:47 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 3 Jun 2022 19:59:31 +0000 (19:59 +0000)
commit06261062e9a1875338b04aaea3b6335d73b513a7
tree3093f61024bb13c25acb43b78434a74992667ec7
parent0eb7051aada1c8f115419122322002f47c1d0fea
cmd/go: add functions to read index file

The data read is used for three primary functions: ImportPackage,
IsDirWithGoFiles and ScanDir. Functions are also provided to get this
information from the intermediate package representation to cache
the information from reads for non-indexed packages.

Change-Id: I5eed629bb0d6ee5b88ab706d06b074475004c081
Reviewed-on: https://go-review.googlesource.com/c/go/+/403975
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
12 files changed:
src/cmd/go/internal/cache/cache.go
src/cmd/go/internal/imports/build.go
src/cmd/go/internal/mmap/mmap.go [new file with mode: 0644]
src/cmd/go/internal/mmap/mmap_other.go [new file with mode: 0644]
src/cmd/go/internal/mmap/mmap_unix.go [new file with mode: 0644]
src/cmd/go/internal/mmap/mmap_windows.go [new file with mode: 0644]
src/cmd/go/internal/modindex/read.go [new file with mode: 0644]
src/cmd/go/internal/modindex/scan.go
src/cmd/go/internal/modindex/write.go
src/internal/syscall/windows/memory_windows.go [new file with mode: 0644]
src/internal/syscall/windows/syscall_windows.go
src/internal/syscall/windows/zsyscall_windows.go