diff --git a/cmd/gqgmcd/main.go b/cmd/gqgmcd/main.go new file mode 100644 index 0000000000000000000000000000000000000000..103cada213ad7c575db5eee1f63b2b0b59f4627f --- /dev/null +++ b/cmd/gqgmcd/main.go @@ -0,0 +1,22 @@ +// +// main.go +// Copyright (C) 2017 kevin <kevin@ie.suberic.net> +// +// Distributed under terms of the MIT license. +// + +package main + +import ( + "fmt" + "net/http" +) + +func metricsHandler(w http.ResponseWriter, r *http.Request) { + fmt.Fprintf(w, "Some metrics.") +} + +func main() { + http.HandleFunc("/", metricsHandler) + http.ListenAndServe(":8080", nil) +}