MustCompileFrame is like CompileFrame but panics if frame can not be encoded.
(f Frame)
| 394 | // MustCompileFrame is like CompileFrame but panics if frame can not be |
| 395 | // encoded. |
| 396 | func MustCompileFrame(f Frame) []byte { |
| 397 | bts, err := CompileFrame(f) |
| 398 | if err != nil { |
| 399 | panic(err) |
| 400 | } |
| 401 | return bts |
| 402 | } |
| 403 | |
| 404 | func makeCloseFrame(code StatusCode) Frame { |
| 405 | return NewCloseFrame(NewCloseFrameBody(code, "")) |
searching dependent graphs…