mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
16 lines
215 B
Go
16 lines
215 B
Go
package main
|
|
|
|
import (
|
|
"io"
|
|
"net/http"
|
|
)
|
|
|
|
func hello(w http.ResponseWriter, r *http.Request) {
|
|
io.WriteString(w, "Hello world!")
|
|
}
|
|
|
|
func main() {
|
|
http.HandleFunc("/", hello)
|
|
http.ListenAndServe(":8000", nil)
|
|
}
|