Adds basic makefile

This commit is contained in:
2015-08-13 10:14:19 +02:00
parent bf5ba9a46f
commit 8dccf95fe3
3 changed files with 11 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/cover.out

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
all: build check
build:
go build
check:
go test -coverprofile=cover.out -covermode=count
go vet
# golint

View File

@@ -40,7 +40,7 @@ func (rw *responseWriterImpl) Write(data []byte) (int, error) {
func (rw *responseWriterImpl) WriteHeader(status int) {
if status <= 0 {
panic(fmt.Sprintf("Invalid providen http status: %s", status))
panic(fmt.Sprintf("Invalid providen http status: %d", status))
}
rw.status = status