mirror of
https://github.com/directorz/mailfull-go.git
synced 2025-12-17 09:37:02 +00:00
Merge pull request #34 from directorz/feature/show_runtime_version
Now show runtime version in `mailfull --version`
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user