mirror of
https://github.com/jimeh/casecmp.git
synced 2026-02-19 02:16:40 +00:00
Merge pull request #14 from jimeh/add-go-version-info
This commit is contained in:
3
main.go
3
main.go
@@ -9,6 +9,7 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"text/template"
|
||||
@@ -154,6 +155,8 @@ func printVersion() {
|
||||
buffer.WriteString(fmt.Sprintf(" (%s)", commit))
|
||||
}
|
||||
|
||||
buffer.WriteString(fmt.Sprintf(", built with %s", runtime.Version()))
|
||||
|
||||
fmt.Println(buffer.String())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user