Draft: feat login
This commit is contained in:
14
utils/tick.go
Normal file
14
utils/tick.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gitea.konchin.com/ytshih/inp2025/game/types"
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
)
|
||||
|
||||
func Tick(d time.Duration) tea.Cmd {
|
||||
return tea.Tick(d, func(t time.Time) tea.Msg {
|
||||
return types.TickMsg(t)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user