diff options
author | ZoRo <dos21h@gmail.com> | 2019-03-31 10:09:20 +0100 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2019-03-31 10:09:20 +0100 |
commit | debd877540525c6123439ea72db040a230231d5c (patch) | |
tree | de1a74fca433d1a0dd997509188baf53ec582886 /haserver.go | |
download | hago-debd877540525c6123439ea72db040a230231d5c.tar.gz hago-debd877540525c6123439ea72db040a230231d5c.zip |
Hago server initial setup
Diffstat (limited to 'haserver.go')
-rw-r--r-- | haserver.go | 29 |
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 |