123456789101112131415161718192021222324252627 |
- package main
- import (
- "embed"
- "github.com/tobychui/naffg"
- )
- //go:embed res/*
- var uiFiles embed.FS
- func main() {
- app := naffg.NewApplication(&naffg.Options{
- Title: "My App",
- Width: 400,
- Height: 300,
- Resizable: true,
- UiRes: &uiFiles, //Embed the UI resources
- UiResPreix: "res", //The folder where the resources is embeded from
- })
- //Print the embedded files
- app.Debug_PrintEmbeddedFiles()
- // Run the application
- app.Run()
- }
|