调整项目结构
parent
c87729bc95
commit
b69813a3e3
Before Width: | Height: | Size: 225 KiB After Width: | Height: | Size: 225 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
|
@ -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)
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue