Untitled

mail@pastecode.io avatar
unknown
golang
2 months ago
225 B
6
Indexable
Never
package main

import(
	"fmt"
	"net/http"
)

func HelloWorldPage(w http.ResponseWriter, r *http.Request){
	fmt.Fprint(w, "Hello World")
}

func main(){
	http.HandleFunc("/", HelloWorldPage)
	http.ListenAndServe(":8080", nil)
}
Leave a Comment