mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
feat: add version info
This commit is contained in:
+5
-1
@@ -14,9 +14,13 @@ import (
|
|||||||
"github.com/httprunner/httprunner/v5/uixt/option"
|
"github.com/httprunner/httprunner/v5/uixt/option"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func Version() string {
|
||||||
|
return version.VERSION
|
||||||
|
}
|
||||||
|
|
||||||
func NewSummary() *Summary {
|
func NewSummary() *Summary {
|
||||||
platForm := &Platform{
|
platForm := &Platform{
|
||||||
HttprunnerVersion: version.VERSION,
|
HttprunnerVersion: Version(),
|
||||||
GoVersion: runtime.Version(),
|
GoVersion: runtime.Version(),
|
||||||
Platform: fmt.Sprintf("%v-%v", runtime.GOOS, runtime.GOARCH),
|
Platform: fmt.Sprintf("%v-%v", runtime.GOOS, runtime.GOARCH),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user