type Version … const Go111 … const Go119 … const Go121 … const Go122 … const Go123 … const Current … var versions … // Specs returns the set of event.Specs for this version. func (v Version) Specs() []event.Spec { … } func (v Version) Valid() bool { … } const headerFmt … // ReadHeader reads the version of the trace out of the trace file's // header, whose prefix must be present in v. func ReadHeader(r io.Reader) (Version, error) { … } // WriteHeader writes a header for a trace version v to w. func WriteHeader(w io.Writer, v Version) (int, error) { … }