diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-03-10 00:16:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-03-10 00:16:10 +0900 |
| commit | 67c1fcf7467e59edea1d50358dc35bb5dcde3224 (patch) | |
| tree | 22c9a70a27ec06f016fb1b539ea3182bb2c625ff /internal | |
| parent | 6a90aaa2ec54518c68fed97380fa316ce25fb6a1 (diff) | |
| download | term-clock-67c1fcf7467e59edea1d50358dc35bb5dcde3224.tar.gz term-clock-67c1fcf7467e59edea1d50358dc35bb5dcde3224.tar.zst term-clock-67c1fcf7467e59edea1d50358dc35bb5dcde3224.zip | |
chore: go fmt
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/term/draw.go | 2 | ||||
| -rw-r--r-- | internal/term/screen.go | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/internal/term/draw.go b/internal/term/draw.go index c6f297f..9ce640a 100644 --- a/internal/term/draw.go +++ b/internal/term/draw.go @@ -4,7 +4,7 @@ import ( "github.com/gdamore/tcell/v2" ) -type Style tcell.Style; +type Style tcell.Style var ( BgStyle Style diff --git a/internal/term/screen.go b/internal/term/screen.go index 14bfcfb..fc1555f 100644 --- a/internal/term/screen.go +++ b/internal/term/screen.go @@ -5,22 +5,22 @@ import ( ) type Screen struct { - scr tcell.Screen + scr tcell.Screen onResize func() bool - QuitC chan struct{} + QuitC chan struct{} } func NewScreen() (*Screen, error) { scr, err := tcell.NewScreen() - if err != nil{ + if err != nil { return nil, err } err = scr.Init() - if err != nil{ + if err != nil { return nil, err } return &Screen{ - scr: scr, + scr: scr, QuitC: make(chan struct{}), }, nil } |
