This commit is contained in:
Shen Junzheng
2025-03-12 01:19:35 +08:00
parent 160040f3e1
commit 78cce92ce3
70 changed files with 10134 additions and 1 deletions

25
pkg/dllver/version.go Normal file
View File

@@ -0,0 +1,25 @@
package dllver
type Info struct {
FilePath string `json:"file_path"`
CompanyName string `json:"company_name"`
FileDescription string `json:"file_description"`
FileVersion string `json:"file_version"`
FileMajorVersion int `json:"file_major_version"`
LegalCopyright string `json:"legal_copyright"`
ProductName string `json:"product_name"`
ProductVersion string `json:"product_version"`
}
func New(filePath string) (*Info, error) {
i := &Info{
FilePath: filePath,
}
err := i.initialize()
if err != nil {
return nil, err
}
return i, nil
}