将 web 框架从 gin 切换到 fiber
This commit is contained in:
@@ -37,6 +37,7 @@ func dev() (err error) {
|
||||
}
|
||||
|
||||
func cip() (err error) {
|
||||
//goland:noinspection HttpUrlsUsage
|
||||
const endpoint = "http://cip.cc"
|
||||
|
||||
req, err := http.NewRequest("GET", endpoint, nil)
|
||||
@@ -82,6 +83,7 @@ func cip() (err error) {
|
||||
}
|
||||
|
||||
func ipapi() (err error) {
|
||||
//goland:noinspection HttpUrlsUsage
|
||||
const endpoint = "http://ip-api.com/json/?fields=regionName,city,as,query&lang=zh-CN"
|
||||
|
||||
resp, err := http.Get(endpoint)
|
||||
|
||||
Reference in New Issue
Block a user