Skip to content
Snippets Groups Projects
Commit 746bc94e authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Beginning change to Go.

parent 5f7e768d
Branches
No related tags found
No related merge requests found
//
// 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)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment