Skip to content

Commit b97f9b3

Browse files
author
Marc Falzon
committed
Switch to Go modules
1 parent 60ce565 commit b97f9b3

File tree

403 files changed

+222676
-4271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

403 files changed

+222676
-4271
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
bin/
2-
pkg/
1+
httpdump

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
VERSION := 0.1.0
1+
VERSION := 0.1.1
22
BUILD_DATE := $(shell date +%F)
33

44
all: httpdump
55

66
httpdump:
7-
gb build -ldflags " \
7+
go build -mod vendor -ldflags " \
88
-X main.version=$(VERSION) \
9-
-X main.buildDate='$(BUILD_DATE)' \
9+
-X main.buildDate=$(BUILD_DATE) \
1010
"
1111

1212
clean:
13-
rm -rf bin/ pkg/
13+
rm -rf httpdump bin/ pkg/

README.md

+1-1

go.mod

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module github.com/falzm/httpdump
2+
3+
go 1.12
4+
5+
require (
6+
github.com/fatih/color v0.0.0-20151111120202-9aae6aaa2231
7+
github.com/goji/param v0.0.0-20150423055352-da86c81e3e3c // indirect
8+
github.com/hokaccha/go-prettyjson v0.0.0-20141201065330-f75235bd99da
9+
github.com/mattn/go-colorable v0.0.0-20151127014555-3dac7b4f76f6 // indirect
10+
github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7 // indirect
11+
github.com/zenazn/goji v0.0.0-20151120200311-bf843a174a08
12+
golang.org/x/sys v0.0.0-20190425045458-9f0b1ff7b46a // indirect
13+
)

go.sum

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
github.com/fatih/color v0.0.0-20151111120202-9aae6aaa2231 h1:SJQOrTKavQKN9enteIYsYLMIk4Qz1bs+ayguw0JqiCY=
2+
github.com/fatih/color v0.0.0-20151111120202-9aae6aaa2231/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
3+
github.com/goji/param v0.0.0-20150423055352-da86c81e3e3c/go.mod h1:GZJblUu7ACjguvQUK2un6nQBlnZk7H1MzXZdfrFUd8Q=
4+
github.com/hokaccha/go-prettyjson v0.0.0-20141201065330-f75235bd99da h1:oAWnYJWp6dui/q7a6g4bpLtxl2X3QTErdognIu1a/yM=
5+
github.com/hokaccha/go-prettyjson v0.0.0-20141201065330-f75235bd99da/go.mod h1:pFlLw2CfqZiIBOx6BuCeRLCrfxBJipTY0nIOF/VbGcI=
6+
github.com/mattn/go-colorable v0.0.0-20151127014555-3dac7b4f76f6 h1:hDKzCQGDZSTNHiscA+DIvmqFNVL/NOGA570T4hTOi0Q=
7+
github.com/mattn/go-colorable v0.0.0-20151127014555-3dac7b4f76f6/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
8+
github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7 h1:owMyzMR4QR+jSdlfkX9jPU3rsby4++j99BfbtgVr6ZY=
9+
github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
10+
github.com/zenazn/goji v0.0.0-20151120200311-bf843a174a08 h1:bIsHnPMOikkee9C709x8NJdp8fsm9j/GKQfGsCqtWKo=
11+
github.com/zenazn/goji v0.0.0-20151120200311-bf843a174a08/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
12+
golang.org/x/sys v0.0.0-20190425045458-9f0b1ff7b46a h1:8cVTj31lbQ2I9z63Y1LjjHVKGisLuXDt12kKR0+r89w=
13+
golang.org/x/sys v0.0.0-20190425045458-9f0b1ff7b46a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
File renamed without changes.

src/httpdump/main.go main.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func main() {
4343
}
4444

4545
func printUsage(output io.Writer) {
46-
fmt.Fprintf(output, "Usage: httpdump [OPTIONS]")
46+
fmt.Fprintf(output, "Usage: %s [OPTIONS]", os.Args[0])
4747
fmt.Fprint(output, "\n\nOptions:\n")
4848

4949
flag.VisitAll(func(f *flag.Flag) {
@@ -54,7 +54,9 @@ func printUsage(output io.Writer) {
5454
}
5555

5656
func printVersion(version, buildDate string) {
57-
fmt.Printf("%s version %s, built on %s\nGo version: %s (%s)\n",
57+
fmt.Printf(`%s version %s, built on %s
58+
Go version: %s (%s)
59+
`,
5860
path.Base(os.Args[0]),
5961
version,
6062
buildDate,

vendor/github.com/fatih/color/.travis.yml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hokaccha/go-prettyjson/.gitignore

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/zenazn/goji/.travis.yml

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/AUTHORS

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/CONTRIBUTORS

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/LICENSE

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/PATENTS

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/.gitignore

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/README.md

+173

0 commit comments

Comments
 (0)