You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package ui
|
|
|
|
|
|
|
|
type UI interface {
|
|
|
|
Run(chan Event) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type Event interface {
|
|
|
|
isUIEvent()
|
|
|
|
}
|
|
|
|
|
|
|
|
type event struct{}
|
|
|
|
|
|
|
|
func (e event) isUIEvent() {}
|
|
|
|
|
|
|
|
type SelectDirectoryEvent struct {
|
|
|
|
Path string
|
|
|
|
event
|
|
|
|
}
|