MCPcopy
hub / github.com/tinygo-org/tinygo / newOutputWriter

Function newOutputWriter

monitor.go:396–401  ·  view source on GitHub ↗

newOutputWriter returns an io.Writer that will intercept panic addresses and will try to insert a source location in the output if the source location can be found in the executable.

(out io.Writer, executable string)

Source from the content-addressed store, hash-verified

394// will try to insert a source location in the output if the source location can
395// be found in the executable.
396func newOutputWriter(out io.Writer, executable string) *outputWriter {
397 return &outputWriter{
398 out: out,
399 executable: executable,
400 }
401}
402
403func (w *outputWriter) Write(p []byte) (n int, err error) {
404 start := 0

Callers 2

MonitorFunction · 0.85
buildAndRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected