Update: added updated duration format in README.md example and rearraged mkdir in Makefile
parent
6922ba74e1
commit
d134dbb0cf
2
Makefile
2
Makefile
|
@ -7,6 +7,7 @@ VERSION ?= latest
|
|||
os = $(word 1, $@)
|
||||
|
||||
bootstrap:
|
||||
@mkdir -p release
|
||||
go get github.com/golang/dep/cmd/dep # Dependency management tool
|
||||
go get github.com/golang/lint/golint # Linter
|
||||
go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter
|
||||
|
@ -22,7 +23,6 @@ test:
|
|||
|
||||
|
||||
$(PLATFORMS):
|
||||
@mkdir -p release
|
||||
GOOS=$(os) GOARCH=amd64 go build -o release/$(BINARY)
|
||||
tar -czf release/$(BINARY)-$(VERSION)-$(os)-amd64.tar.gz README.md -C release/ $(BINARY)
|
||||
rm release/$(BINARY)
|
||||
|
|
|
@ -10,7 +10,8 @@ dumb-http [-path path-to-serve] [port]
|
|||
```
|
||||
$ dumb-http -path ./docs
|
||||
Serving at http://0.0.0.0:8000/ from ./docs
|
||||
127.0.0.1 - - [05/Jul/2018 18:08:16] "GET / HTTP/1.1" 200 38 0.0000 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"
|
||||
127.0.0.1 - - [06/Jul/2018 17:05:36] "GET / HTTP/1.1" 200 0 16.76µs "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"
|
||||
127.0.0.1 - - [06/Jul/2018 17:05:37] "GET / HTTP/1.1" 304 0 173ns "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"
|
||||
```
|
||||
|
||||
>Inspired by Python module http.server
|
||||
|
|
Loading…
Reference in New Issue