blob: 32cb151936899a6bc559635b2e80392056770a02 (
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
30
31
32
33
|
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))
}
|