From f5aca689c0f70a9db0bfd38c110b5bd248f92f40 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Sun, 17 Oct 2021 17:40:53 +0200 Subject: [PATCH] reformat to make it more universal --- pkg/api/aiden/{weather.go => aiden.go} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename pkg/api/aiden/{weather.go => aiden.go} (92%) diff --git a/pkg/api/aiden/weather.go b/pkg/api/aiden/aiden.go similarity index 92% rename from pkg/api/aiden/weather.go rename to pkg/api/aiden/aiden.go index 2b2b3ff..866cc04 100644 --- a/pkg/api/aiden/weather.go +++ b/pkg/api/aiden/aiden.go @@ -8,7 +8,7 @@ import ( log "github.com/sirupsen/logrus" ) -func Weather(uri string) string { +func ApiCall(uri string) string { resp, err := http.Get(fmt.Sprintf("https://customapi.aidenwallis.co.uk/%s", uri)) if err != nil { log.Error(err)