From 9d915fb2bdafe4ff03b6bfb273b6d36f02eab284 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 16 Sep 2019 17:33:18 +0200 Subject: removed unused comments --- http.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'http.go') diff --git a/http.go b/http.go index 70e9eee..ece4fde 100644 --- a/http.go +++ b/http.go @@ -54,10 +54,6 @@ func getHandler(w http.ResponseWriter, r *http.Request) { // TODO: Handle caching // - dump all if not present // - if old, fetch from celestrack - //content, err := ioutil.ReadFile("categories.txt") - //if err != nil { - // log.Println("Could note read categories.txt") - //} // open the file containing the data for the individual station categoryPath := fmt.Sprintf("data/%s.txt", vars["station"]) @@ -79,12 +75,6 @@ func getHandler(w http.ResponseWriter, r *http.Request) { RawTLE := strings.Join(lines[j:j+3], "\n") - /* - RawTLE := `ISS (ZARYA) - 1 25544U 98067A 19229.39083552 .00000228 00000-0 11917-4 0 9993 - 2 25544 51.6447 57.6210 0007373 294.0868 138.8050 15.50381554184754` - */ - // handle the response according to the query parameter "format" // if ?format=json is given, return if r.URL.Query().Get("format") == "json" { -- cgit 1.4.1