peinfo

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FILE_ADDRESS_OF_NEW_EXE_HEADER = 60

Variables

This section is empty.

Functions

func GetTimeStamp

func GetTimeStamp(fname string) (time.Time, error)

GetTimeStamp gets the timestamp, which was written in the binary by compiler when the executable was built by filename.

func ReadTimeStamp

func ReadTimeStamp(fd io.ReaderAt) (time.Time, error)

ReadTimeStamp gets the timestamp, which was written in the binary by compiler when the executable was built from io.ReaderAt.

Types

type ExeSpec

type ExeSpec struct {
	Name           string
	Md5Sum         string
	FileVersion    string
	ProductVersion string
	Size           int64
	Stamp          time.Time
	Is64bit        bool
}

func New

func New(fname string) *ExeSpec

func (*ExeSpec) WriteTo

func (spec *ExeSpec) WriteTo(w io.Writer) (int64, error)

type VersionInfo

type VersionInfo struct {
	// contains filtered or unexported fields
}

func GetVersionInfo

func GetVersionInfo(fname string) (*VersionInfo, error)

func (*VersionInfo) Number

func (vi *VersionInfo) Number() (file []uint, product []uint, err error)

Number returns executable's File-Version(slice of 4-integers) and Product-Version(slice of 4-integers).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL