go-KodeStarter/version/version-number.go

44 lines
1.3 KiB
Go
Raw Normal View History

2023-06-14 23:33:24 -04:00
package version
2023-06-17 22:49:37 -04:00
// 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.
2023-06-14 23:33:24 -04:00
2023-06-17 14:17:02 -04:00
import "fmt"
2023-06-17 22:49:37 -04:00
// Version is a struct that contains the version number
2023-06-17 14:17:02 -04:00
type Version struct {
Major int
Minor int
Patch int
Build int
}
2023-06-17 22:49:37 -04:00
// version variable that will be set at build time by versionManager.exe
// *** DO NOT EDIT ***
2023-07-08 00:45:18 -04:00
var versionNumber Version = Version{0, 0, 0, 42}
2023-06-17 14:17:02 -04:00
2023-06-17 22:49:37 -04:00
// GetFullVersion returns the full version number as a string
2023-06-17 14:17:02 -04:00
func GetFullVersion() string {
return fmt.Sprintf("%d.%d.%d.%d", versionNumber.Major, versionNumber.Minor, versionNumber.Patch, versionNumber.Build)
}
2023-06-17 22:49:37 -04:00
// GetMajorVersion returns the major version number as a string
2023-06-17 14:17:02 -04:00
func GetMajorVersion() string {
return fmt.Sprintf("%d", versionNumber.Major)
}
2023-06-17 22:49:37 -04:00
// GetMinorVersion returns the minor version number as a string
2023-06-17 14:17:02 -04:00
func GetMinorVersion() string {
return fmt.Sprintf("%d", versionNumber.Minor)
}
2023-06-17 22:49:37 -04:00
// GetPatchVersion returns the patch version number as a string
2023-06-17 14:17:02 -04:00
func GetPatchVersion() string {
return fmt.Sprintf("%d", versionNumber.Patch)
}
2023-06-17 22:49:37 -04:00
// GetBuildVersion returns the build version number as a string
2023-06-17 14:17:02 -04:00
func GetBuildVersion() string {
return fmt.Sprintf("%d", versionNumber.Build)
}