From 319b0b8076f0c6b925711e450cedfdee1358dcb3 Mon Sep 17 00:00:00 2001 From: youspectrum <2725096176@qq.com> Date: Sun, 9 Oct 2022 21:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gotest/weather_test.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 gotest/weather_test.go diff --git a/gotest/weather_test.go b/gotest/weather_test.go deleted file mode 100644 index b40400b..0000000 --- a/gotest/weather_test.go +++ /dev/null @@ -1,26 +0,0 @@ -package gotest - -import ( - "fmt" - "github.com/kirinlabs/HttpRequest" - "testing" -) - -type weather struct { - status string - result string -} - -func Test_we(t *testing.T) { - get, err := HttpRequest.JSON().Get("https://api.caiyunapp.com/v2.6/y1BgC9gnutIzXlZF/126.62,45.62/realtime?alert=true") - if err != nil { - return - } - - body, err := get.Body() - if err != nil { - return - } - s := string(body) - fmt.Println(s) -}