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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user