mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
add Makefile and docs for golang xdb maker and binding
This commit is contained in:
parent
9cb3bbcb07
commit
4b4984fce0
10
binding/golang/Makefile
Normal file
10
binding/golang/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
# ip2region golang binding makefile
|
||||
all: build
|
||||
.PHONY: all
|
||||
|
||||
build:
|
||||
go build -o xdb_searcher
|
||||
test:
|
||||
go test -v ./...
|
||||
clean:
|
||||
find ./ -name xdb_searcher | xargs rm -f
|
||||
@ -43,7 +43,7 @@ func main() {
|
||||
通过如下方式编译得到 xdb_searcher 可执行程序:
|
||||
```bash
|
||||
# 切换到 golang binding 根目录
|
||||
go build -o xdb_searcher
|
||||
make
|
||||
```
|
||||
|
||||
|
||||
|
||||
10
maker/golang/Makefile
Normal file
10
maker/golang/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
# ip2region golang maker makefile
|
||||
all: build
|
||||
.PHONY: all
|
||||
|
||||
build:
|
||||
go build -o xdb_maker
|
||||
test:
|
||||
go test -v ./...
|
||||
clean:
|
||||
find ./ -name xdb_maker | xargs rm -f
|
||||
@ -5,7 +5,7 @@
|
||||
通过如下方式编译得到 xdb_maker 可执行程序:
|
||||
```
|
||||
# 切换到golang maker 根目录
|
||||
go build -o xdb_maker
|
||||
make
|
||||
```
|
||||
编译成功后会在当前目录生成一个 xdb_maker 的可执行文件
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user