Files
file-tool-wails/app.go

23 lines
285 B
Go
Raw Normal View History

2026-06-11 15:46:19 +08:00
package main
import (
"context"
"fmt"
)
type App struct {
ctx context.Context
}
func NewApp() *App {
return &App{}
}
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
}
func (a *App) Greet(name string) string {
return fmt.Sprintf("Hello %s, It's show time!", name)
}