mirror of
https://github.com/Estom/notes.git
synced 2026-05-04 15:34:49 +08:00
14 lines
250 B
Go
14 lines
250 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprintf(w, "Hello, you've requested: %s\n", r.URL.Path)
|
|
})
|
|
|
|
http.ListenAndServe(":80", nil)
|
|
} |