summaryrefslogtreecommitdiff
path: root/haserver.go
blob: 21f35372ce899bfcec9cbf534ed1585163c74fd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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))
}