package version
Import Path
internal/trace/version (on go.dev)
Dependency Relation
imports 4 packages, and imported by 4 packages
Involved Source Files
version.go
Package-Level Type Names (only one)
Version represents the version of a trace file.
Specs returns the set of event.Specs for this version.
( Version) Valid() bool
func ReadHeader(r io.Reader) (Version, error)
func internal/trace/raw.(*Reader).Version() Version
func internal/trace/raw.(*TextReader).Version() Version
func WriteHeader(w io.Writer, v Version) (int, error)
func internal/trace/internal/oldtrace.Parse(r io.Reader, vers Version) (oldtrace.Trace, error)
func internal/trace/raw.NewTextWriter(w io.Writer, v Version) (*raw.TextWriter, error)
func internal/trace/raw.NewWriter(w io.Writer, v Version) (*raw.Writer, error)
const Current
const Go111
const Go119
const Go121
const Go122
const Go123
Package-Level Functions (total 2)
ReadHeader reads the version of the trace out of the trace file's
header, whose prefix must be present in v.
WriteHeader writes a header for a trace version v to w.
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |