13 lines
202 B
Go
13 lines
202 B
Go
|
package main
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
func main() {
|
||
|
http.HandleFunc("/", hello)
|
||
|
http.ListenAndServe(":8000", nil)
|
||
|
}
|
||
|
|
||
|
func hello(w http.ResponseWriter, r *http.Request) {
|
||
|
w.Write([]byte("Hello World!"))
|
||
|
}
|