调整项目结构

master
dugulingping 2022-11-06 22:21:34 +08:00
parent c87729bc95
commit b69813a3e3
27 changed files with 2 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 225 KiB

After

Width:  |  Height:  |  Size: 225 KiB

View File

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View File

@ -7,11 +7,11 @@ import (
) )
func main() { func main() {
http.HandleFunc("/", handler) http.HandleFunc("/", handler1)
log.Fatal(http.ListenAndServe("localhost:8090", nil)) log.Fatal(http.ListenAndServe("localhost:8090", nil))
} }
func handler(w http.ResponseWriter, r *http.Request) { func handler1(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "url.Path = %q \n", r.URL.Path) fmt.Fprintf(w, "url.Path = %q \n", r.URL.Path)
} }