You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hw/hw.go

20 lines
359 B

package hw
import "net/http"
5 years ago
// Version is version.
var Version = "unset"
5 years ago
// Git exists so we can override it
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"`
}