go1.20.5
GoThrough

buildinfo.IMAGE_SCN_ALIGN_32BYTES

// Assume data is first writable section. const IMAGE_SCN_ALIGN_32BYTES = 0x600000

buildinfo.IMAGE_SCN_CNT_CODE

// Assume data is first writable section. const IMAGE_SCN_CNT_CODE = 0x00000020

buildinfo.IMAGE_SCN_CNT_INITIALIZED_DATA

// Assume data is first writable section. const IMAGE_SCN_CNT_INITIALIZED_DATA = 0x00000040

buildinfo.IMAGE_SCN_CNT_UNINITIALIZED_DATA

// Assume data is first writable section. const IMAGE_SCN_CNT_UNINITIALIZED_DATA = 0x00000080

buildinfo.IMAGE_SCN_LNK_NRELOC_OVFL

// Assume data is first writable section. const IMAGE_SCN_LNK_NRELOC_OVFL = 0x1000000

buildinfo.IMAGE_SCN_MEM_DISCARDABLE

// Assume data is first writable section. const IMAGE_SCN_MEM_DISCARDABLE = 0x2000000

buildinfo.IMAGE_SCN_MEM_EXECUTE

// Assume data is first writable section. const IMAGE_SCN_MEM_EXECUTE = 0x20000000

buildinfo.IMAGE_SCN_MEM_READ

// Assume data is first writable section. const IMAGE_SCN_MEM_READ = 0x40000000

buildinfo.IMAGE_SCN_MEM_WRITE

// Assume data is first writable section. const IMAGE_SCN_MEM_WRITE = 0x80000000

buildinfo.RW

// Try the first non-empty writable segment. const RW = 3

buildinfo.Read

// 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 Read(r io.ReaderAt) (*BuildInfo, error)

buildinfo.ReadFile

// 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. func ReadFile(name string) (info *BuildInfo, err error)