将 web 框架从 gin 切换到 fiber

This commit is contained in:
2025-05-15 10:04:28 +08:00
parent 8b7dc9e4ff
commit b29882f0a7
8 changed files with 46 additions and 24 deletions

View File

@@ -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)