refactor(context): refactor context handling and improve test robustness #1638
Annotations
10 errors
lint:
context.go#L1048
c.Writer.WriteHeader undefined (type ResponseWriter has no field or method WriteHeader) (typecheck)
|
lint:
context.go#L1056
c.Writer.Header undefined (type ResponseWriter has no field or method Header) (typecheck)
|
lint:
context.go#L1059
c.Writer.Header undefined (type ResponseWriter has no field or method Header) (typecheck)
|
lint:
context.go#L1261
c.Writer.Header undefined (type ResponseWriter has no field or method Header) (typecheck)
|
lint:
context.go#L1280
w.CloseNotify undefined (type ResponseWriter has no field or method CloseNotify) (typecheck)
|
lint:
context.go#L1286
cannot use w (variable of type ResponseWriter) as io.Writer value in argument to step: ResponseWriter does not implement io.Writer (missing method Write) (typecheck)
|
lint:
context.go#L1287
w.Flush undefined (type ResponseWriter has no field or method Flush) (typecheck)
|
lint:
gin.go#L704
c.writermem.Header undefined (type responseWriter has no field or method Header) (typecheck)
|
lint:
gin.go#L723
c.writermem.Header undefined (type responseWriter has no field or method Header) (typecheck)
|
lint:
gin.go#L724
c.Writer.Write undefined (type ResponseWriter has no field or method Write) (typecheck)
|