diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -14,6 +14,10 @@ func main() { http.StripPrefix("/", fs).ServeHTTP(w, r) }) + var logs [100]string + + http.HandleFunc("/logs", createGetLogs(&logs)) + http.HandleFunc("/foo", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "foo!") }) @@ -25,3 +29,10 @@ func main() { fmt.Printf("Error starting server: %s\n", err) } } + +func createGetLogs(logs *[100]string) func(http.ResponseWriter, *http.Request) { + return func(w http.ResponseWriter, r *http.Request) { + + } +} + |