| 1 | package utilscip-go gomod github.com/coder/websocket . `github.com/coder/websocket/internal/util`/ |
| 2 | |
| 3 | // WriterFunc is used to implement one off io.Writers. |
| 4 | type WriterFuncscip-go gomod github.com/coder/websocket . `github.com/coder/websocket/internal/util`/WriterFunc# func(p []byte) (int, error) |
| 5 | |
| 6 | func (f WriterFuncscip-go gomod github.com/coder/websocket . `github.com/coder/websocket/internal/util`/WriterFunc#) Writescip-go gomod github.com/coder/websocket . `github.com/coder/websocket/internal/util`/WriterFunc#Write().(p []byte) (int, error) { |
| 7 | return f(p) |
| 8 | } |
| 9 | |
| 10 | // ReaderFunc is used to implement one off io.Readers. |
| 11 | type ReaderFuncscip-go gomod github.com/coder/websocket . `github.com/coder/websocket/internal/util`/ReaderFunc# func(p []byte) (int, error) |
| 12 | |
| 13 | func (f ReaderFuncscip-go gomod github.com/coder/websocket . `github.com/coder/websocket/internal/util`/ReaderFunc#) Readscip-go gomod github.com/coder/websocket . `github.com/coder/websocket/internal/util`/ReaderFunc#Read().(p []byte) (int, error) { |
| 14 | return f(p) |
| 15 | } |