MCPcopy Index your code
hub / github.com/unrolled/render / Encode

Method Encode

render_json_test.go:21–25  ·  view source on GitHub ↗
(_ interface{})

Source from the content-addressed store, hash-verified

19}
20
21func (e TestEncoder) Encode(_ interface{}) error {
22 _, _ = e.w.Write([]byte(e.String()))
23
24 return nil
25}
26
27func (e TestEncoder) SetEscapeHTML(_ bool) {}
28

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
WriteMethod · 0.80

Tested by

no test coverage detected