cmd/testserver/main.go   A
last analyzed

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 10
dl 0
loc 15
rs 10
c 0
b 0
f 0
1
package main
2
3
import (
4
	"net/http"
5
)
6
7
func main() {
8
	handlerFunc := func(writer http.ResponseWriter, request *http.Request) {}
9
10
	http.HandleFunc("/home", handlerFunc)
11
	http.HandleFunc("/index", handlerFunc)
12
	http.HandleFunc("/index/home", handlerFunc)
13
14
	if err := http.ListenAndServe(":8080", nil); err != nil {
15
		panic(err)
16
	}
17
}
18