Skip to content

Commit

Permalink
chore: add go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf-joe committed Mar 15, 2020
1 parent 5179219 commit 112d768
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ src/
pkg/
bin/
dist/
go.sum

delegated-apnic-latest
cnip.txt
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- wget https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt -O gfwlist.txt
- wget -c https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
# - wget -c http://ftp.apnic.net/stats/apnic/delegated-apnic-latest
# - cat delegated-apnic-latest | awk -F '|' '/CN/&&/ipv4/ {print $4 "/" 32-log($5)/log(2)}' > cnip.txt
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/
ldflags:
- -X main.VERSION={{.Version}}
goos:
Expand Down
14 changes: 14 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module github.com/wolf-joe/ts-dns

go 1.13

replace github.com/Sirupsen/logrus v1.4.2 => github.com/sirupsen/logrus v1.4.2

require (
github.com/BurntSushi/toml v0.3.1
github.com/Sirupsen/logrus v1.4.2
github.com/coreos/go-semver v0.3.0 // indirect
github.com/janeczku/go-ipset v0.0.0-20170206212442-499ed3217c4b
github.com/miekg/dns v1.1.28
golang.org/x/net v0.0.0-20200301022130-244492dfa37a
)

0 comments on commit 112d768

Please sign in to comment.