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

@@ -11,7 +11,7 @@ import (
)
var (
chSigUsr1 = func() chan os.Signal {
ChSigUsr1 = func() chan os.Signal {
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGUSR1)
return c
@@ -24,7 +24,7 @@ type Refresh struct {
}
func NewRefresh(ctx context.Context, newWrap func() Wrap) *Refresh {
return NewRefreshWith(ctx, newWrap, chSigUsr1)
return NewRefreshWith(ctx, newWrap, ChSigUsr1)
}
func NewRefreshWith(ctx context.Context, newWrap func() Wrap, ch <-chan os.Signal) *Refresh {