17 lines
261 B
Go
17 lines
261 B
Go
package token
|
|
|
|
import (
|
|
"github.com/ayn2op/tview"
|
|
"github.com/gdamore/tcell/v3"
|
|
)
|
|
|
|
type TokenEvent struct {
|
|
tcell.EventTime
|
|
Token string
|
|
}
|
|
|
|
func tokenCommand(token string) tview.Command {
|
|
return func() tcell.Event {
|
|
return &TokenEvent{Token: token}
|
|
}
|
|
}
|