diff --git a/Makefile b/Makefile index 89d8dcb..93ef8c8 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ build: .PHONY: vet vet: - go vet + go vet ./... .PHONY: lint lint: diff --git a/core/file.go b/core/file.go index bedce47..abc3950 100644 --- a/core/file.go +++ b/core/file.go @@ -10,14 +10,14 @@ type Meta struct { Via string `json:"via"` RequestHeader http.Header `json:"requestHeader"` ResponseHeader http.Header `json:"responseHeader"` - Status string `json:"status` // e.g. "200 OK" - StatusCode int `json:"statusCode` // e.g. 200 - Proto string `json:"proto` // e.g. "HTTP/1.0" - ProtoMajor int `json:"protoMajor` // e.g. 1 - ProtoMinor int `json:"protoMinor` // e.g. 0 - ContentLength int64 `json:"contentLength` + Status string `json:"status"` // e.g. "200 OK" + StatusCode int `json:"statusCode"` // e.g. 200 + Proto string `json:"proto"` // e.g. "HTTP/1.0" + ProtoMajor int `json:"protoMajor"` // e.g. 1 + ProtoMinor int `json:"protoMinor"` // e.g. 0 + ContentLength int64 `json:"contentLength"` TransferEncoding []string `json:"transferEncoding"` - Uncompressed bool `json:"uncompressed` + Uncompressed bool `json:"uncompressed"` RequestTimestamp time.Time `json:"requestTimestamp"` DownloadTime time.Duration `json:"downloadTime"` }