stub for an HTTP server

This commit is contained in:
boyska 2018-09-30 11:06:46 +02:00
parent 4bc6c09977
commit aeba6dba24
2 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
vendor
panelcli
go.sum
userpanel

15
cmd/userpanel/main.go Normal file
View file

@ -0,0 +1,15 @@
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(501)
fmt.Fprintf(w, "Nothing has been implemented. Just cross your fingers.\n")
})
http.ListenAndServe(":8000", nil)
}