https://github.com/honwen/ip2loc
Get Location of IP
https://github.com/honwen/ip2loc
golang
Last synced: 4 months ago
JSON representation
Get Location of IP
- Host: GitHub
- URL: https://github.com/honwen/ip2loc
- Owner: honwen
- License: mit
- Created: 2018-06-22T08:37:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T11:40:20.000Z (5 months ago)
- Last Synced: 2024-12-29T12:26:14.772Z (5 months ago)
- Topics: golang
- Language: Go
- Homepage:
- Size: 108 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Source
- https://github.com/honwen/ip2loc
### Thanks
- https://github.com/metowolf/qqwry.ipdb
- https://github.com/ipipdotnet/ipdb-go### Usage
```go
package mainimport (
"fmt"
"github.com/honwen/ip2loc"
)func main() {
if loc, err := ip2loc.IP2loc("8.8.8.8"); err != nil {
fmt.Printf("%+v", err)
} else {
fmt.Printf("%+v", loc)
}
}```