Skip to content

Commit

Permalink
Switch to Go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Falzon committed Apr 25, 2019
1 parent 60ce565 commit b97f9b3
Show file tree
Hide file tree
Showing 403 changed files with 222,676 additions and 4,271 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bin/
pkg/
httpdump
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
VERSION := 0.1.0
VERSION := 0.1.1
BUILD_DATE := $(shell date +%F)

all: httpdump

httpdump:
gb build -ldflags " \
go build -mod vendor -ldflags " \
-X main.version=$(VERSION) \
-X main.buildDate='$(BUILD_DATE)' \
-X main.buildDate=$(BUILD_DATE) \
"

clean:
rm -rf bin/ pkg/
rm -rf httpdump bin/ pkg/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Note: this utility is currently in a very rudimentary form since it started as a

## Build

Building httpdump from sources requires the GNU Make and [gb](https://getgb.io/) utility. To build it, simply execute `make` at the root of the source tree, and if everything goes well the binary can be found in the `bin/` directory.
To build `httpdump` from source, simply execute `make` at the root of the source tree, and if everything goes well the binary can be found in the current directory.

## Usage

Expand Down
13 changes: 13 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module github.com/falzm/httpdump

go 1.12

require (
github.com/fatih/color v0.0.0-20151111120202-9aae6aaa2231
github.com/goji/param v0.0.0-20150423055352-da86c81e3e3c // indirect
github.com/hokaccha/go-prettyjson v0.0.0-20141201065330-f75235bd99da
github.com/mattn/go-colorable v0.0.0-20151127014555-3dac7b4f76f6 // indirect
github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7 // indirect
github.com/zenazn/goji v0.0.0-20151120200311-bf843a174a08
golang.org/x/sys v0.0.0-20190425045458-9f0b1ff7b46a // indirect
)
13 changes: 13 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
github.com/fatih/color v0.0.0-20151111120202-9aae6aaa2231 h1:SJQOrTKavQKN9enteIYsYLMIk4Qz1bs+ayguw0JqiCY=
github.com/fatih/color v0.0.0-20151111120202-9aae6aaa2231/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/goji/param v0.0.0-20150423055352-da86c81e3e3c/go.mod h1:GZJblUu7ACjguvQUK2un6nQBlnZk7H1MzXZdfrFUd8Q=
github.com/hokaccha/go-prettyjson v0.0.0-20141201065330-f75235bd99da h1:oAWnYJWp6dui/q7a6g4bpLtxl2X3QTErdognIu1a/yM=
github.com/hokaccha/go-prettyjson v0.0.0-20141201065330-f75235bd99da/go.mod h1:pFlLw2CfqZiIBOx6BuCeRLCrfxBJipTY0nIOF/VbGcI=
github.com/mattn/go-colorable v0.0.0-20151127014555-3dac7b4f76f6 h1:hDKzCQGDZSTNHiscA+DIvmqFNVL/NOGA570T4hTOi0Q=
github.com/mattn/go-colorable v0.0.0-20151127014555-3dac7b4f76f6/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7 h1:owMyzMR4QR+jSdlfkX9jPU3rsby4++j99BfbtgVr6ZY=
github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/zenazn/goji v0.0.0-20151120200311-bf843a174a08 h1:bIsHnPMOikkee9C709x8NJdp8fsm9j/GKQfGsCqtWKo=
github.com/zenazn/goji v0.0.0-20151120200311-bf843a174a08/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
golang.org/x/sys v0.0.0-20190425045458-9f0b1ff7b46a h1:8cVTj31lbQ2I9z63Y1LjjHVKGisLuXDt12kKR0+r89w=
golang.org/x/sys v0.0.0-20190425045458-9f0b1ff7b46a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
File renamed without changes.
6 changes: 4 additions & 2 deletions src/httpdump/main.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
}

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

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

func printVersion(version, buildDate string) {
fmt.Printf("%s version %s, built on %s\nGo version: %s (%s)\n",
fmt.Printf(`%s version %s, built on %s
Go version: %s (%s)
`,
path.Base(os.Args[0]),
version,
buildDate,
Expand Down
3 changes: 3 additions & 0 deletions vendor/github.com/fatih/color/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions vendor/github.com/hokaccha/go-prettyjson/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions vendor/github.com/zenazn/goji/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions vendor/golang.org/x/sys/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/golang.org/x/sys/CONTRIBUTORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/golang.org/x/sys/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/golang.org/x/sys/PATENTS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/golang.org/x/sys/unix/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

173 changes: 173 additions & 0 deletions vendor/golang.org/x/sys/unix/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b97f9b3

Please sign in to comment.