stub for an HTTP server
This commit is contained in:
parent
4bc6c09977
commit
aeba6dba24
2 changed files with 16 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
vendor
|
||||
panelcli
|
||||
go.sum
|
||||
userpanel
|
||||
|
|
15
cmd/userpanel/main.go
Normal file
15
cmd/userpanel/main.go
Normal 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)
|
||||
}
|
Reference in a new issue