Versions in this module Expand all Collapse all v0 v0.0.1 May 15, 2024 Changes in this version + var ErrTerminate = errors.New("interview terminated") + type AcceptText func(state T, text string) (T, *Question[T], error) + type Choice struct + Choose ChooseFunc[T] + Text string + type ChooseFunc func(state T) (updated T, next *Question[T], err error) + func NewChooseFunc[T any](next *Question[T]) ChooseFunc[T] + type MessageOnly func(state T) (T, *Question[T], error) + type MultipleChoice []Choice[T] + type Question struct + Answer any + Text string + func NewMessage[T any](text string, next *Question[T]) Question[T] + func NewTerminatingMessage[T any](text string) Question[T]