Package buildinfo
Overview ▸
Index ▸
type BuildInfo ¶ 1.18
Type alias for build info. We cannot move the types here, since runtime/debug would need to import this package, which would make it a much larger dependency.
type BuildInfo = debug.BuildInfo
func Read ¶ 1.18
func Read(r io.ReaderAt) (*BuildInfo, error)
Read returns build information embedded in a Go binary file accessed through the given ReaderAt. Most information is only available for binaries built with module support.
func ReadFile ¶ 1.18
func ReadFile(name string) (info *BuildInfo, err error)
ReadFile returns build information embedded in a Go binary file at the given path. Most information is only available for binaries built with module support.