store and report git info

This commit is contained in:
sm
2018-03-08 16:17:11 -08:00
parent 56bd8445a4
commit bcbbe000f3
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -3,6 +3,7 @@ package hw
import "net/http"
var Version = "unset"
var Git = "unset"
// OK simply return 200
func OK(w http.ResponseWriter, req *http.Request) {}
@@ -11,4 +12,5 @@ func OK(w http.ResponseWriter, req *http.Request) {}
type V struct {
Hostname string `json:"hostname"`
V string `json:"version"`
G string `json:"git"`
}