From 932efbc49ad77594610616c56099c1da703a952d Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 27 Jan 2020 20:49:30 +0100 Subject: snake_case → camelCase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http.go') diff --git a/src/http.go b/src/http.go index 86ad3d1..47f0d75 100644 --- a/src/http.go +++ b/src/http.go @@ -49,10 +49,10 @@ func indexHandler(w http.ResponseWriter, req *http.Request) { func metricsHandler(w http.ResponseWriter, req *http.Request) { // return the overall amount of passwords catched - fmt.Fprintf(w, "num_passwords %d\n", metrics_num_passwords) + fmt.Fprintf(w, "num_passwords %d\n", metricsNumPasswords) // return the amount of passwords catched from a given city - for k, v := range metrics_city_num { + for k, v := range metricsCityNum { fmt.Fprintf(w, "a_metric{city=\"%s\"} %d\n", strings.ToLower(k), v) } } -- cgit 1.4.1