| 1 |
package version |
| 2 |
|
| 3 |
import "fmt" |
| 4 |
|
| 5 |
const major = 3 |
| 6 |
const minor = 0 |
| 7 |
const patch = 7 |
| 8 |
|
| 9 |
// Code version as integer |
| 10 |
const Code = major*1000000 + minor*1000 + patch |
| 11 |
|
| 12 |
// String version as string |
| 13 |
func String() string { |
| 14 |
return fmt.Sprintf("%d.%d.%d", major, minor, patch) |
| 15 |
} |