]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add index creation methods
authorMichael Matloob <matloob@golang.org>
Tue, 5 Apr 2022 22:47:23 +0000 (18:47 -0400)
committerMichael Matloob <matloob@golang.org>
Wed, 1 Jun 2022 20:20:50 +0000 (20:20 +0000)
commit293d43e17eaae8ccb83364e401538d51c035b8a4
treec4168096473c950bb9b4855fb9ad62c442002681
parent8a56c7742d96c8ef8e8dcecaf3d1c0e9f022f708
cmd/go: add index creation methods

This change functions to scan modules and packages into an intermediate
RawPackage struct and also functions to write them out to and index.

Change-Id: Ia1a3b58b992e9be52c5d1397e85c642f902011cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/398415
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/modindex/build.go
src/cmd/go/internal/modindex/index_format.txt [new file with mode: 0644]
src/cmd/go/internal/modindex/scan.go [new file with mode: 0644]
src/cmd/go/internal/modindex/write.go [new file with mode: 0644]