commit
0bc2060b31
|
|
@ -1,6 +1,6 @@
|
||||||
###golang 实现ip地址查询
|
### golang 实现ip地址查询
|
||||||
|
|
||||||
####获取
|
#### 获取
|
||||||
|
|
||||||
```
|
```
|
||||||
go get github.com/mohong122/ip2region/binding/golang
|
go get github.com/mohong122/ip2region/binding/golang
|
||||||
|
|
@ -9,7 +9,7 @@ go get github.com/mohong122/ip2region/binding/golang
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
####使用
|
#### 使用
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ func main() {
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
####返回对象
|
#### 返回对象
|
||||||
```golang
|
```golang
|
||||||
type IpInfo struct {
|
type IpInfo struct {
|
||||||
CityId int64
|
CityId int64
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue