1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-17 17:47:04 +00:00

Now show runtime version in mailfull --version

This commit is contained in:
teru
2017-12-13 15:07:44 +09:00
parent 3ae4d8d590
commit e32ed61771

View File

@@ -9,6 +9,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"github.com/directorz/mailfull-go"
"github.com/directorz/mailfull-go/cmd"
@@ -22,8 +23,9 @@ var (
func init() {
if gittag != "" {
version = version + "-" + gittag
version += "-" + gittag
}
version += fmt.Sprintf(" (built with %s)", runtime.Version())
}
func main() {