mirror of
https://github.com/xiaoqidun/aipdw.git
synced 2024-11-24 03:56:45 +08:00
docs(更新演示): 更新演示地址
This commit is contained in:
parent
6804ad03c0
commit
bb8f9974a8
@ -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
aipdw.go
4
aipdw.go
@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
@ -66,7 +66,7 @@ func QueryIP(sk string, key string, ip string) (result Result, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := io.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module github.com/xiaoqidun/aipdw
|
module github.com/xiaoqidun/aipdw
|
||||||
|
|
||||||
go 1.17
|
go 1.19
|
||||||
|
Loading…
x
Reference in New Issue
Block a user