15 lines
223 B
Go
15 lines
223 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||
|
fmt.Fprintf(w, "Hello World!")
|
||
|
w.WriteHeader(200)
|
||
|
})
|
||
|
http.ListenAndServe(":8081", nil)
|
||
|
}
|