16 lines
222 B
Go
16 lines
222 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func helloWorld(w http.ResponseWriter, r *http.Request) {
|
||
|
fmt.Fprintf(w, "Hello World")
|
||
|
}
|
||
|
|
||
|
func main() {
|
||
|
http.HandleFunc("/", helloWorld)
|
||
|
http.ListenAndServe(":8080", nil)
|
||
|
}
|