16 lines
262 B
Go
16 lines
262 B
Go
package version
|
|
|
|
import "fmt"
|
|
|
|
const major = 3
|
|
const minor = 0
|
|
const patch = 4
|
|
|
|
// Code version as integer
|
|
const Code = major*1000000 + minor*1000 + patch
|
|
|
|
// String version as string
|
|
func String() string {
|
|
return fmt.Sprintf("%d.%d.%d", major, minor, patch)
|
|
}
|