Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 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 | } |
||
18 |