type TextReader … // NewTextReader creates a new reader for the trace text format. func NewTextReader(r io.Reader) (*TextReader, error) { … } // Version returns the version of the trace that we're reading. func (r *TextReader) Version() version.Version { … } // ReadEvent reads and returns the next trace event in the text stream. func (r *TextReader) ReadEvent() (Event, error) { … } func (r *TextReader) nextLine() (string, error) { … } var frameFields … func readArgs(s string, names []string) ([]uint64, error) { … } func readArg(s string) (arg string, value uint64, rest string, err error) { … } func readToken(s string) (token, rest string) { … } func readData(line string) ([]byte, error) { … }