snapshot before merge
This commit is contained in:
1 parent
06a5f3da4d
commit
671871e0b2
145 files changed
+9786
-59
No files matched your search
@@ -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))
|
||||
}
|
||||
Reference in new issue
Block a user