MCPcopy Index your code
hub / github.com/bemasher/rtlamr / Encode

Method Encode

flags.go:265–272  ·  view source on GitHub ↗
(msg interface{})

Source from the content-addressed store, hash-verified

263}
264
265func (pe PlainEncoder) Encode(msg interface{}) (err error) {
266 if m, ok := msg.(protocol.LogMessage); ok && pe.sampleFilename == os.DevNull {
267 _, err = fmt.Println(m.StringNoOffset())
268 } else {
269 _, err = fmt.Println(m)
270 }
271 return
272}

Callers

nothing calls this directly

Calls 1

StringNoOffsetMethod · 0.80

Tested by

no test coverage detected