summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index fba15c1..b9952b3 100644
--- a/main.go
+++ b/main.go
@@ -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) {
+
+ }
+}
+