diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ff84bbf --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 李光春 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index c78fc68..456bd01 100644 --- a/README.md +++ b/README.md @@ -2,33 +2,27 @@ Golang Ip -📦 Golang Ip库组件 +📦 Golang Ip库 [comment]: <> (go) -[![godoc](https://pkg.go.dev/badge/go.dtapp.net/goip?status.svg)](https://pkg.go.dev/go.dtapp.net/goip) -[![goproxy.cn](https://goproxy.cn/stats/go.dtapp.net/goip/badges/download-count.svg)](https://goproxy.cn/stats/go.dtapp.net/goip) -[![goreportcard.com](https://goreportcard.com/badge/go.dtapp.net/goip )](https://goreportcard.com/report/go.dtapp.net/goip) -[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/go.dtapp.net/goip) +[![godoc](https://pkg.go.dev/badge/github.com/dtapps/goip?status.svg)](https://pkg.go.dev/github.com/dtapps/goip) +[![goproxy.cn](https://goproxy.cn/stats/github.com/dtapps/goip/badges/download-count.svg)](https://goproxy.cn/stats/github.com/dtapps/goip) +[![goreportcard.com](https://goreportcard.com/badge/github.com/dtapps/goip )](https://goreportcard.com/report/github.com/dtapps/goip) +[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/github.com%2Fdtapps%2Fgoip) -#### 安装使用 +#### 安装 ```go -go get -v -u go.dtapp.net/goip +go get -v -u github.com/dtapps/goip ``` -#### 导入 - -```go -import ( - "go.dtapp.net/goip" -) -``` +#### 使用 ```go package main import ( - "go.dtapp.net/goip" + "github.com/dtapps/goip" "testing" ) diff --git a/go.mod b/go.mod index 60d1b1f..8096f5a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.dtapp.net/goip +module github.com/dtapps/goip go 1.18 diff --git a/goip.go b/goip.go index 818d629..7f042ba 100644 --- a/goip.go +++ b/goip.go @@ -1,9 +1,9 @@ package goip import ( - "go.dtapp.net/goip/ip2region" - v4 "go.dtapp.net/goip/v4" - v6 "go.dtapp.net/goip/v6" + "github.com/dtapps/goip/ip2region" + v4 "github.com/dtapps/goip/v4" + v6 "github.com/dtapps/goip/v6" "log" "strings" ) diff --git a/v4/qqwry.dat b/v4/qqwry.dat index 7b478ad..0d22143 100644 Binary files a/v4/qqwry.dat and b/v4/qqwry.dat differ diff --git a/version.go b/version.go index 6e5e916..d2c6029 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package goip -const Version = "1.0.18" +const Version = "1.0.19"