17 lines
299 B
Go
17 lines
299 B
Go
package hw
|
|
|
|
import "net/http"
|
|
|
|
var Version = "unset"
|
|
var Git = "unset"
|
|
|
|
// OK simply return 200
|
|
func OK(w http.ResponseWriter, req *http.Request) {}
|
|
|
|
// V houses version information
|
|
type V struct {
|
|
Hostname string `json:"hostname"`
|
|
V string `json:"version"`
|
|
G string `json:"git"`
|
|
}
|