MCPcopy Create free account
hub / github.com/AandStep/ResultV / productVersionFromWailsJSON

Function productVersionFromWailsJSON

version.go:32–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30)
31
32func productVersionFromWailsJSON() string {
33 productVersionOnce.Do(func() {
34 var cfg struct {
35 Info struct {
36 ProductVersion string `json:"productVersion"`
37 } `json:"info"`
38 }
39 if err := json.Unmarshal(embeddedWailsJSON, &cfg); err != nil || cfg.Info.ProductVersion == "" {
40 productVersionCached = "0.0.0"
41 return
42 }
43 productVersionCached = cfg.Info.ProductVersion
44 })
45 return productVersionCached
46}

Callers 2

GetVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected