docs(更新演示): 更新演示地址

This commit is contained in:
xiaoqidun 2022-11-30 16:06:46 +08:00
parent 6804ad03c0
commit bb8f9974a8
3 changed files with 4 additions and 4 deletions

@ -4,7 +4,7 @@ Golang 高德IP定位库
# 在线演示
- [https://aite.xyz/aipdw](https://aite.xyz/aipdw)
- [https://aite.xyz/demo/aipdw](https://aite.xyz/demo/aipdw)
# 类似项目

@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net"
"net/http"
"sync"
@ -66,7 +66,7 @@ func QueryIP(sk string, key string, ip string) (result Result, err error) {
return
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return
}

2
go.mod

@ -1,3 +1,3 @@
module github.com/xiaoqidun/aipdw
go 1.17
go 1.19