type TextWriter … // NewTextWriter creates a new write for the trace text format. func NewTextWriter(w io.Writer, v version.Version) (*TextWriter, error) { … } // WriteEvent writes a single event to the stream. func (w *TextWriter) WriteEvent(e Event) error { … }