Untitled
unknown
golang
2 years ago
225 B
9
Indexable
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)
}Editor is loading...
Leave a Comment