split button and parse packages

This commit is contained in:
bel
2023-03-25 22:52:09 -06:00
parent bd5654128e
commit 373d8be1a0
13 changed files with 59 additions and 50 deletions

View File

@@ -19,9 +19,9 @@ type Wrap interface {
CloseWrap() raw.Raw
}
func New(ctx context.Context, srcFunc func() button.Parser) Wrap {
func New(ctx context.Context, parserFunc func() Wrap) Wrap {
maker := func() Wrap {
return srcFunc()
return parserFunc()
}
if FlagBuffered {
oldMaker := maker