Skip to content
Myr

Note about project being a pre-release

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 91271ca · Browse files · 2 files+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−3 removed

  • other:+6 added−3 removed

2 files+6 added−3 removed

modified:README.md+4 added-2 removed
modified:tea.go+2 added-1 removed
1package tea23import (4 "context"5 "errors"6 "io"7 "os"8 "strings"
9 unmodified lines
18type Cmd func(Model) Msg1920// Sub is an event subscription. If it returns nil it's considered a no-op,21// but there's really no reason to have a nil subscription.21type Sub func(Model) Msg22type Sub func(context.Context, Model) Msg2324// Subs is a keyed set of subscriptions. The key should be a unique25// identifier; two different subscriptions should not have the same key26type Subs map[string]Sub
244 unmodified lines