ajustement version
This commit is contained in:
@@ -1 +0,0 @@
|
||||
0.1.0.0
|
||||
@@ -1,7 +1,11 @@
|
||||
package version
|
||||
// This file is generated automatically by versionManager.exe.
|
||||
// DO NOT EDIT THIS FILE.
|
||||
// Any changes made to this file will be overwritten the next time versionManager.exe is run.
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Version is a struct that contains the version number
|
||||
type Version struct {
|
||||
Major int
|
||||
Minor int
|
||||
@@ -9,24 +13,31 @@ type Version struct {
|
||||
Build int
|
||||
}
|
||||
|
||||
var versionNumber Version = Version{0, 1, 0, 0}
|
||||
// version variable that will be set at build time by versionManager.exe
|
||||
// *** DO NOT EDIT ***
|
||||
var versionNumber Version = Version{0, 0, 0, 7}
|
||||
|
||||
// GetFullVersion returns the full version number as a string
|
||||
func GetFullVersion() string {
|
||||
return fmt.Sprintf("%d.%d.%d.%d", versionNumber.Major, versionNumber.Minor, versionNumber.Patch, versionNumber.Build)
|
||||
}
|
||||
|
||||
// GetMajorVersion returns the major version number as a string
|
||||
func GetMajorVersion() string {
|
||||
return fmt.Sprintf("%d", versionNumber.Major)
|
||||
}
|
||||
|
||||
// GetMinorVersion returns the minor version number as a string
|
||||
func GetMinorVersion() string {
|
||||
return fmt.Sprintf("%d", versionNumber.Minor)
|
||||
}
|
||||
|
||||
// GetPatchVersion returns the patch version number as a string
|
||||
func GetPatchVersion() string {
|
||||
return fmt.Sprintf("%d", versionNumber.Patch)
|
||||
}
|
||||
|
||||
// GetBuildVersion returns the build version number as a string
|
||||
func GetBuildVersion() string {
|
||||
return fmt.Sprintf("%d", versionNumber.Build)
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user