BuildInfo represents the build information read from the running binary.
| 44 | // BuildInfo represents the build information read from |
| 45 | // the running binary. |
| 46 | type BuildInfo struct { |
| 47 | GoVersion string // version of the Go toolchain that built the binary, e.g. "go1.19.2" |
| 48 | Path string // The main package path |
| 49 | Main Module // The module containing the main package |
| 50 | Deps []*Module // Module dependencies |
| 51 | Settings []BuildSetting |
| 52 | } |
| 53 | |
| 54 | type BuildSetting struct { |
| 55 | // Key and Value describe the build setting. |
nothing calls this directly
no outgoing calls
no test coverage detected