Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ASCIICast = asciiCast{ // contains filtered or unexported fields }
ASCIICast is an empty struct to help format into Asciicast/Asciinema format. See https://github.com/asciinema/asciinema/blob/develop/doc/asciicast-v2.md for more details on the format
Functions ¶
Types ¶
type ASCIICastHeader ¶
type ASCIICastHeader struct { // only first 3 are required Version int `json:"version"` Width uint16 `json:"width"` Height uint16 `json:"height"` Timestamp int64 `json:"timestamp"` Duration float64 `json:"duration,omitempty"` IdleTimeLimit float64 `json:"idle_time_limit,omitempty"` Command string `json:"command,omitempty"` Title string `json:"title,omitempty"` Env map[string]string `json:"env"` Theme *ASCIICastTheme `json:"theme,omitempty"` }
ASCIICastHeader is a structure for representing Asciinema formatted files. See here: https://github.com/asciinema/asciinema/blob/develop/doc/asciicast-v2.md Note that this compatible with V2 explicitly. Future revisions are not guaranteed.
type ASCIICastTheme ¶
type ASCIICastTheme struct { Foreground string `json:"fg,omitempty"` Background string `json:"bg,omitempty"` Palette string `json:"palette,omitempty"` }
ASCIICastTheme is the struct that represents the Asciinema file theme sub-structure
type ASCIInemaEvent ¶
ASCIInemaEvent is the struct that represents the Asciinema file event sub-structure Note: in the asciicast format, the data is represented as an array, so there is no explicit json field naming here. See (f ASCIICast) WriteEvent for how these get turned into the proper format