This commit is contained in:
Imbus 2025-01-25 05:49:54 +01:00
commit 9240e1dfea
7 changed files with 842 additions and 0 deletions

15
rex_server/server.go Normal file
View file

@ -0,0 +1,15 @@
package server
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(":8080", nil)
}