14 lines
234 B
Go
14 lines
234 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
|
|
fmt.Fprintln(w, "Goodbye, World!")
|
|
})
|
|
log.Fatal(http.ListenAndServe(":8080", nil))
|
|
}
|