MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / checkWriter

Function checkWriter

common/custom-event.go:27–33  ·  view source on GitHub ↗
(writer io.Writer)

Source from the content-addressed store, hash-verified

25}
26
27func checkWriter(writer io.Writer) stringWriter {
28 if w, ok := writer.(stringWriter); ok {
29 return w
30 } else {
31 return stringWrapper{writer}
32 }
33}
34
35// Server-Sent Events
36// W3C Working Draft 29 October 2009

Callers 1

encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected