package version
import "golang.org/x/exp/trace/internal/version"
Index ¶
Functions ¶
func WriteHeader ¶
WriteHeader writes a header for a trace version v to w.
Types ¶
type Version ¶
type Version uint32
Version represents the version of a trace file.
const ( Go111 Version = 11 // v1 Go119 Version = 19 // v1 Go121 Version = 21 // v1 Go122 Version = 22 // v2 Go123 Version = 23 // v2 Current = Go123 )
func ReadHeader ¶
ReadHeader reads the version of the trace out of the trace file's header, whose prefix must be present in v.
func (Version) EventName ¶
EventName returns a string name of a wire format event for a particular trace version.
func (Version) Specs ¶
Specs returns the set of event.Specs for this version.
func (Version) Valid ¶
Source Files ¶
version.go
- Version
- v0.0.0-20250506013437-ce4c2cf36ca6 (latest)
- Published
- May 6, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 42 minutes ago –
Tools for package owners.