Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicateQuestion = errors.New("duplicate question") ErrNoQuestions = errors.New("no questions") )
Functions ¶
This section is empty.
Types ¶
type Answerer ¶
type Answerer[K comparable, V any] interface { Answer(ctx context.Context, key K, answer V) error }
type Questions ¶
type Questions[K comparable, V any] interface { Asker[K, V] Answerer[K, V] }
func NewQuestions ¶
func NewQuestions[K comparable, V any]() Questions[K, V]
Click to show internal directories.
Click to hide internal directories.