Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd40ec9c

Browse files
committed
forgot to commit a file
1 parentdbdf49f commitd40ec9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎coderd/httpmw/noop.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package httpmw
2+
3+
import"net/http"
4+
5+
// noopResponseWriter is a response writer that does nothing.
6+
typenoopResponseWriterstruct{}
7+
8+
func (noopResponseWriter)Header() http.Header {return http.Header{} }
9+
func (noopResponseWriter)Write(p []byte) (int,error) {returnlen(p),nil }
10+
func (noopResponseWriter)WriteHeader(int) {}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp