From 7bcf80febb53f2e28c9f54fd4aa9cc0c690f5926 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sun, 29 May 2022 11:51:47 -0400 Subject: nws: remove "NWS" from types Also rename: - `Forecast` function to `GetForecast`. - `ForecastHourly` function to `GetForecastHourly`. --- nws/nws_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nws/nws_test.go') diff --git a/nws/nws_test.go b/nws/nws_test.go index 9dcd53e..ffa05c8 100644 --- a/nws/nws_test.go +++ b/nws/nws_test.go @@ -42,7 +42,7 @@ func TestPoints(t *testing.T) { } } -func TestForecast(t *testing.T) { +func TestGetForecast(t *testing.T) { // Get point. np, err := Points(41.115, -83.177) if err != nil { @@ -51,7 +51,7 @@ func TestForecast(t *testing.T) { } // Get forecast. - fc, err := Forecast(np) + fc, err := GetForecast(np) if err != nil { t.Errorf("error: %v", err) return @@ -96,7 +96,7 @@ func TestForecast(t *testing.T) { } } -func TestForecastHourly(t *testing.T) { +func TestGetForecastHourly(t *testing.T) { // Get point. np, err := Points(41.115, -83.177) if err != nil { @@ -105,7 +105,7 @@ func TestForecastHourly(t *testing.T) { } // Get forecast hourly. - fc, err := ForecastHourly(np) + fc, err := GetForecastHourly(np) if err != nil { t.Errorf("error: %v", err) return -- cgit v1.2.3