Pracownia.Programowania/plik.go

17 lines
223 B
Go

package main
import (
"fmt"
"net/http"
)
func hello(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "to dziala :)")
}
func main(){
http.HandleFunc("/", hello)
http.ListenAndServe(":8080", nil)
}