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