Pracownia.Programowania/plik.go

17 lines
223 B
Go
Raw Normal View History

2018-11-18 21:52:49 +01:00
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)
}