package main import ( "fmt" t "git.iwakura.rip/grng/tiramisu" webview "github.com/webview/webview_go" ) func main() { app := t.New(t.TiramisuOptions{ Debug: true, Width: 1200, Height: 800, Title: "Tiramisu Example", Hints: webview.HintFixed, }) app.Run(func() { app.Bind("hello", func(args ...any) (any, error) { if len(args) == 0 { return "Hello, World!", nil } if len(args) == 1 { return fmt.Sprintf("Hello, %s!", args[0]), nil } return "Hello, unknown!", nil }) app.HTML(`
Click the button to see a greeting:
`) }) }