Versions in this module Expand all Collapse all v0 v0.73.1 Nov 30, 2026 v0.73.0 Nov 30, 2026 Changes in this version + const AskTimeout + const DraftSuffix + var ErrNoSession = errors.New("questions need the explain session, and this viewer was opened without one") + func Finish(draft, record string) (string, error) + func ForkArgs(session string) []string + func KeyOf(draft string) (string, error) + func Prompt(q Question) string + func Read(ctx context.Context, in io.Reader, w io.Writer, draft string, asker Asker, ...) error + func Record(title string, shown []Shown) string + type Asker interface + Ask func(ctx context.Context, q Question) (Reply, error) + type Draft struct + Beats []string + Header string + Title string + func Parse(text string) Draft + func (d Draft) Render() string + type Fork struct + Dir string + Session string + func (f Fork) Ask(ctx context.Context, q Question) (Reply, error) + type QA struct + Answer string + Question string + type Question struct + Shown []Shown + Text string + Title string + Unread []string + type Reply struct + Answer string + Beats []string + Keep bool + func ParseResult(stdout string) (Reply, error) + type Shown struct + Beat string + QAs []QA