streamwatcher/main.go
2020-06-29 17:32:48 +00:00

16 lines
No EOL
238 B
Go
Executable file

package main
import (
"fmt"
"log"
"net/http"
)
func root(w http.ResponseWriter, r *http.Request){
fmt.Fprint(w, "Root site")
}
func main() {
http.HandleFunc("/", root)
log.Fatal(http.ListenAndServe(":8080", nil))
}