1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-18 10:07:03 +00:00

Merge pull request #34 from directorz/feature/show_runtime_version

Now show runtime version in `mailfull --version`
This commit is contained in:
teru
2017-12-13 15:11:23 +09:00
committed by GitHub

View File

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