MCPcopy Index your code
hub / github.com/gobwas/ws / errorText

Function errorText

http.go:438–444  ·  view source on GitHub ↗

errorText is a non-performant error text generator. NOTE: Used only to generate constants.

(err error)

Source from the content-addressed store, hash-verified

436// errorText is a non-performant error text generator.
437// NOTE: Used only to generate constants.
438func errorText(err error) string {
439 var buf bytes.Buffer
440 bw := bufio.NewWriter(&buf)
441 writeErrorText(bw, err)
442 bw.Flush()
443 return buf.String()
444}
445
446// HandshakeHeader is the interface that writes both upgrade request or
447// response headers into a given io.Writer.

Callers 1

http.goFile · 0.85

Calls 2

FlushMethod · 0.95
writeErrorTextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…