feat:add GetExeDllVersion for fileutil,random,package (#257)

* 增加GetExeDllVersion函数获取exe,dll版本号

* 多打文字

* 定位忘记...

* 单独剥离出来一个为windows的,增加RandNumLen为取指定长度随机数.

* ....

* 增加test测试
This commit is contained in:
今晚打打 authored and GitHub committed 2024-10-18 16:17:14 +08:00
1 parent 1671f7856a
commit ed93aae970
9 files changed
+171 -5

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
//go:build windows
package fileutil
import "testing"
func TestGetExeDllVersion(t *testing.T) {
v, err := GetExeDllVersion(`C:\Windows\System32\cmd.exe`)
if err != nil {
t.Error(err)
}
t.Log(v)
}