2019-03-31 19:41:37 +03:00

18 lines
263 B
Go

package version
import (
"fmt"
"os"
"path/filepath"
)
const Version = "2019.1.1"
func Print() {
if Version == "devel" {
fmt.Printf("%s (no version)\n", filepath.Base(os.Args[0]))
} else {
fmt.Printf("%s %s\n", filepath.Base(os.Args[0]), Version)
}
}