summaryrefslogblamecommitdiffstats
path: root/haserver.go
blob: 32cb151936899a6bc559635b2e80392056770a02 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                  



                                             
















                                                     
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, `

27/4/2019
Give me a webserver! What if I dont have one?

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))
}