Versions in this module Expand all Collapse all v0 v0.0.1 Nov 14, 2025 Changes in this version + func App() *application.App + func E(op, msg string, err error) error + func MustServiceFor[T any](c *Core, name string) T + func ServiceFor[T any](c *Core, name string) (T, error) + type ActionDisplayOpenWindow struct + Name string + Options application.WebviewWindowOptions + type ActionServiceShutdown struct + type ActionServiceStartup struct + type Config interface + Get func(key string, out any) error + Set func(key string, v any) error + type Contract struct + DisableLogging bool + DontPanic bool + type Core struct + App *application.App + Features *Features + func New(opts ...Option) (*Core, error) + func (c *Core) ACTION(msg Message) error + func (c *Core) Assets() embed.FS + func (c *Core) Config() Config + func (c *Core) Core() *Core + func (c *Core) Display() Display + func (c *Core) RegisterAction(handler func(*Core, Message) error) + func (c *Core) RegisterActions(handlers ...func(*Core, Message) error) + func (c *Core) RegisterService(name string, api any) error + func (c *Core) Service(name string) any + func (c *Core) ServiceShutdown(ctx context.Context) error + func (c *Core) ServiceStartup(ctx context.Context, options application.ServiceOptions) error + type Crypt interface + DecryptPGP func(recipientPath, message, passphrase string, signerPath *string) (string, error) + EncryptPGP func(writer io.Writer, recipientPath, data string, ...) (string, error) + type Display interface + OpenWindow func(opts ...WindowOption) error + type Error struct + Err error + Msg string + Op string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Features struct + Flags []string + func (f *Features) IsEnabled(feature string) bool + type Help interface + Show func() error + ShowAt func(anchor string) error + type I18n interface + SetLanguage func(lang string) error + Translate func(key string) string + type Message interface + type Option func(*Core) error + func WithAssets(fs embed.FS) Option + func WithName(name string, factory func(*Core) (any, error)) Option + func WithService(factory func(*Core) (any, error)) Option + func WithServiceLock() Option + func WithWails(app *application.App) Option + type Runtime struct + Core *Core + func NewRuntime(app *application.App) (*Runtime, error) + func NewWithFactories(app *application.App, factories map[string]ServiceFactory) (*Runtime, error) + func (r *Runtime) ServiceName() string + func (r *Runtime) ServiceShutdown(ctx context.Context) + func (r *Runtime) ServiceStartup(ctx context.Context, options application.ServiceOptions) + type ServiceFactory func() (any, error) + type ServiceRuntime struct + func NewServiceRuntime[T any](c *Core, opts T) *ServiceRuntime[T] + func (r *ServiceRuntime[T]) Config() Config + func (r *ServiceRuntime[T]) Core() *Core + type WindowConfig struct + Height int + Name string + Title string + URL string + Width int + type WindowOption interface + Apply func(*WindowConfig) + type Workspace interface + CreateWorkspace func(identifier, password string) (string, error) + SwitchWorkspace func(name string) error + WorkspaceFileGet func(filename string) (string, error) + WorkspaceFileSet func(filename, content string) error