Documentation
¶
Index ¶
- type App
- func (a *App) Delete(slot string) error
- func (a *App) Get(key string) any
- func (a *App) GoTo(name string)
- func (a *App) GoToWith(name string, args map[string]any)
- func (a *App) Load(slot string, data any) error
- func (a *App) LoadHTMLFile(path string) error
- func (a *App) LoadHTMLFromFS(fsys fs.FS, path string) error
- func (a *App) On(name string, handler any)
- func (a *App) OpenFile()
- func (a *App) Run()
- func (a *App) Save(slot string, data any) error
- func (a *App) SaveDir() (string, error)
- func (a *App) SaveExists(slot string) bool
- func (a *App) Screen(name string, fn func(s *Screen))
- func (a *App) Set(key string, value any)
- func (a *App) Start(name string)
- type Screen
- func (s *Screen) Delete(slot string) error
- func (s *Screen) Get(key string) any
- func (s *Screen) GoTo(name string)
- func (s *Screen) GoToWith(name string, args map[string]any)
- func (s *Screen) HTML(filePath string)
- func (s *Screen) Load(slot string, data any) error
- func (s *Screen) On(event string, handler any)
- func (s *Screen) OnEnter(fn func())
- func (s *Screen) OnLeave(fn func())
- func (s *Screen) OpenFile()
- func (s *Screen) Save(slot string, data any) error
- func (s *Screen) SaveExists(slot string) bool
- func (s *Screen) Set(key string, value any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) LoadHTMLFile ¶
func (*App) SaveExists ¶
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
func (*Screen) SaveExists ¶
Click to show internal directories.
Click to hide internal directories.