summaryrefslogtreecommitdiffstats
path: root/haserver.go
diff options
context:
space:
mode:
Diffstat (limited to 'haserver.go')
-rw-r--r--haserver.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/haserver.go b/haserver.go
new file mode 100644
index 0000000..21f3537
--- /dev/null
+++ b/haserver.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "fmt"
+ "log"
+ "net/http"
+)
+
+func handler(w http.ResponseWriter, r *http.Request) {
+ fmt.Fprintf(w, "IRC: irc.hacking.allowed.org:6667/6697\n")
+ fmt.Fprintf(w, "Hi there mister %s\n", r.URL.Path[1:])
+ fmt.Fprintf(w, `
+24/3/2019
+People comes and people goes
+But we stay hey ho
+
+
+This happend ...
+maybe new epoch is comming ...
+
+ FreeArtMan
+`)
+}
+
+func main() {
+ fmt.Println("Start server")
+ http.HandleFunc("/",handler)
+ log.Fatal(http.ListenAndServe(":12345", nil))
+} \ No newline at end of file