Skip to content

Commit e11e887

Browse files
committed
support netip.Addr
Former-commit-id: 21fda94
1 parent 057e8c5 commit e11e887

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/setup-go@v2
1212
with:
13-
go-version: '1.16.7'
13+
go-version: '1.22.1'
1414
- name: Update
1515
run: |
1616
git clone https://${GEOIP_TOKEN}@github.com/${GITHUB_REPOSITORY}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/phuslu/iploc
22

3-
go 1.16
3+
go 1.18

iploc.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Package iploc provides fastest Geolocation Country library for Go.
22
//
3-
// package main
3+
// package main
44
//
5-
// import (
6-
// "fmt"
7-
// "net"
8-
// "github.com/phuslu/iploc"
9-
// )
5+
// import (
6+
// "fmt"
7+
// "net"
8+
// "github.com/phuslu/iploc"
9+
// )
1010
//
11-
// func main() {
12-
// fmt.Printf("%s", iploc.Country(net.ParseIP("2001:4860:4860::8888")))
13-
// }
11+
// func main() {
12+
// fmt.Printf("%s", iploc.Country(net.ParseIP("2001:4860:4860::8888")))
13+
// }
1414
//
15-
// // Output: US
15+
// // Output: US
1616
package iploc
1717

1818
import (

iploc_be.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build ppc64 || mips || mips64 || mips64p32
12
// +build ppc64 mips mips64 mips64p32
23

34
package iploc

iploc_le.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build 386 || amd64 || arm || amd64p32 || arm64 || ppc64le || mipsle || mips64le || mips64p32le || riscv64
12
// +build 386 amd64 arm amd64p32 arm64 ppc64le mipsle mips64le mips64p32le riscv64
23

34
package iploc

0 commit comments

Comments
 (0)