MCPcopy
hub / github.com/gin-gonic/gin / WriteString

Method WriteString

response_writer.go:91–96  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

89}
90
91func (w *responseWriter) WriteString(s string) (n int, err error) {
92 w.WriteHeaderNow()
93 n, err = io.WriteString(w.ResponseWriter, s)
94 w.size += n
95 return
96}
97
98func (w *responseWriter) Status() int {
99 return w.status

Callers

nothing calls this directly

Calls 2

WriteHeaderNowMethod · 0.95
WriteStringMethod · 0.65

Tested by

no test coverage detected