]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/objabi: add inverse of PathToPrefix
authorMichael Pratt <mpratt@google.com>
Fri, 15 Sep 2023 17:49:56 +0000 (13:49 -0400)
committerMichael Pratt <mpratt@google.com>
Fri, 13 Oct 2023 13:56:25 +0000 (13:56 +0000)
commit696fb5ead03a4b84e11f2d195bc91838fdd029b2
treee9755fdf7ed3c5ccdeb5823ce2d2bcd523c3bbad
parentd1ef967306b401474aafb2a0d351e972bdfeb54c
cmd/internal/objabi: add inverse of PathToPrefix

Add PrefixToPath, which can be used to convert a package path in a
symbol name back to the original package path.

For #61577.

Change-Id: Ifbe8c852a7f41ff9b81ad48b92a26a0e1b046777
Reviewed-on: https://go-review.googlesource.com/c/go/+/529557
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/objabi/path.go
src/cmd/internal/objabi/path_test.go