This repository has been archived on 2024-01-11. You can view files and clone it, but cannot push or open issues or pull requests.
admin/main.go

16 lines
246 B
Go
Raw Normal View History

2022-01-26 17:00:22 +00:00
package main
import (
"fmt"
"html"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
})
http.ListenAndServe("0.0.0.0:8080", nil)
}