No Description
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.go 359B

12345678910111213141516171819
  1. package hw
  2. import "net/http"
  3. // Version is version.
  4. var Version = "unset"
  5. // Git exists so we can override it
  6. var Git = "unset"
  7. // OK simply return 200
  8. func OK(w http.ResponseWriter, req *http.Request) {}
  9. // V houses version information
  10. type V struct {
  11. Hostname string `json:"hostname"`
  12. V string `json:"version"`
  13. G string `json:"git"`
  14. }