Skip to content

Commit 88939cf

Browse files
committed
🎉 initial commit
0 parents  commit 88939cf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"log"
6+
"net/http"
7+
)
8+
9+
func main() {
10+
http.HandleFunc("/bar", func(w http.ResponseWriter, r *http.Request) {
11+
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
12+
})
13+
14+
log.Fatal(http.ListenAndServe(":8080", nil))
15+
}

0 commit comments

Comments
 (0)