From 02a74fe9b22350cbce5d8767a11001315cb7cfd3 Mon Sep 17 00:00:00 2001 From: Mikolaj Date: Sun, 18 Nov 2018 21:52:49 +0100 Subject: [PATCH] second commit --- plik.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plik.go diff --git a/plik.go b/plik.go new file mode 100644 index 0000000..da6df8a --- /dev/null +++ b/plik.go @@ -0,0 +1,17 @@ +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) +} \ No newline at end of file