Adds basic makefile
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/cover.out
|
||||
9
Makefile
Normal file
9
Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
all: build check
|
||||
|
||||
build:
|
||||
go build
|
||||
|
||||
check:
|
||||
go test -coverprofile=cover.out -covermode=count
|
||||
go vet
|
||||
# golint
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user