From 8eb8139d655c784fb759e2b341d073eec83cf8e5 Mon Sep 17 00:00:00 2001 From: showwin Date: Mon, 19 Apr 2021 17:40:15 +0900 Subject: [PATCH] [fix] jsonOuput -> jsonOutput --- speedtest.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/speedtest.go b/speedtest.go index ee40fb2..8bd7013 100644 --- a/speedtest.go +++ b/speedtest.go @@ -63,16 +63,16 @@ func main() { } } -func startTest(servers speedtest.Servers, savingMode bool, jsonOuput bool) { +func startTest(servers speedtest.Servers, savingMode bool, jsonOutput bool) { for _, s := range servers { - if !jsonOuput { + if !jsonOutput { showServer(s) } err := s.PingTest() checkError(err) - if jsonOuput { + if jsonOutput { err := s.DownloadTest(savingMode) checkError(err) @@ -92,7 +92,7 @@ func startTest(servers speedtest.Servers, savingMode bool, jsonOuput bool) { showServerResult(s) } - if !jsonOuput && len(servers) > 1 { + if !jsonOutput && len(servers) > 1 { showAverageServerResult(servers) } }