main.go 238 Bytes
Newer Older
Aksel Baardsen's avatar
fix  
Aksel Baardsen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"fmt"
	"net/http"
)

func main() {

	http.HandleFunc("/hello", handlerHello)
	http.ListenAndServe("localhost:8080", nil)

}

func handlerHello(w http.ResponseWriter, r *http.Request) {

	fmt.Fprintln(w, "hello")

}