Versions in this module Expand all Collapse all v0 v0.0.1 Mar 18, 2023 Changes in this version + const EventTypeInput + const EventTypeOutput + const EventTypeUnknown + type AsciiCastV1 struct + Command string + Duration float64 + Env map[string]string + Height uint + StdoutFrames []Frame + Title string + Version Version + Width uint + func ParseV1(ctx context.Context, asciiCastV1Bytes []byte) (*AsciiCastV1, error) + func (x *AsciiCastV1) Check() error + type AsciiCastV2 struct + Command string + Duration float64 + EnvMap map[string]string + EventStream []*Event + Height uint + IdleTimeLimit float64 + Theme *Theme + Timestamp uint64 + Title string + Version Version + Width uint + func ParseV2(ctx context.Context, asciiCastV2Bytes []byte) (*AsciiCastV2, error) + func (x *AsciiCastV2) GetTime() time.Time + type Event struct + Delay float64 + EventData string + EventType EventType + func (x *Event) GetAsciiCast() *AsciiCastV2 + func (x *Event) GetEventTime() time.Time + type EventType string + func ParseEventType(eventType string) (EventType, error) + type Frame []any + func (x Frame) GetData() string + func (x Frame) GetDataE() (string, error) + func (x Frame) GetDelay() float64 + func (x Frame) GetDelayE() (float64, error) + type Theme struct + BackgroundColor string + FrontColor string + Palette string + type Version uint + const Version1 + const Version2 + const VersionUnknown + func DetectVersion(ctx context.Context, asciiCastString string) (Version, error)