1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package wally import "runtime" // GetAppVersion returns the current version number. func GetAppVersion() string { switch runtime.GOOS { case "darwin": return "2.1.0" case "linux": return "2.1.0" case "windows": return "2.1.0" default: return "2.1.0" } }