• Hana Kim's avatar
    runtime/debug: add API to read module info in binary · 45e9c553
    Hana Kim authored
    When module is enabled, the go tool embeds build information
    related to the module in the binary including the dependencies
    and the replace information (See
    src/cmd/go/internal/modload.PackageBuildInfo).
    
    The newly introduced ReadBuildInfo reads the information and
    makes it accessible programmatically.
    
    Update #26404
    
    Change-Id: Ide37022d609b4a8fb6b5ce02afabb73f04fbb532
    Reviewed-on: https://go-review.googlesource.com/c/144220
    Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    45e9c553
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...