ResponseWriter: Remove unexported method
This commit is contained in:
parent
bd29d76f66
commit
b66b287f94
@ -158,5 +158,3 @@ func (w *timeoutWriter) Flush() error {
|
|||||||
func (w *timeoutWriter) Close() error {
|
func (w *timeoutWriter) Close() error {
|
||||||
return w.wc.Close()
|
return w.wc.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *timeoutWriter) unexported() {}
|
|
||||||
|
@ -160,11 +160,6 @@ type ResponseWriter interface {
|
|||||||
// Close closes the connection.
|
// Close closes the connection.
|
||||||
// Any blocked Write operations will be unblocked and return errors.
|
// Any blocked Write operations will be unblocked and return errors.
|
||||||
Close() error
|
Close() error
|
||||||
|
|
||||||
// unexported method so we can extend this interface over time
|
|
||||||
// without breaking existing code. Implementers must embed a concrete
|
|
||||||
// type from elsewhere.
|
|
||||||
unexported()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type responseWriter struct {
|
type responseWriter struct {
|
||||||
@ -228,5 +223,3 @@ func (w *responseWriter) Flush() error {
|
|||||||
func (w *responseWriter) Close() error {
|
func (w *responseWriter) Close() error {
|
||||||
return w.cl.Close()
|
return w.cl.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *responseWriter) unexported() {}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user