snapshot before merge

This commit is contained in:
zqlit committed 2026-06-01 17:57:22 +08:00
1 parent 06a5f3da4d
commit 671871e0b2
145 files changed
+9786 -59

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/api/posts/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "GOT posts/ handler: path=%s\n", r.URL.Path)
})
mux.HandleFunc("/api/posts", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "GOT posts handler: path=%s\n", r.URL.Path)
})
log.Fatal(http.ListenAndServe(":8700", mux))
}