package main import ( "embed" "github.com/wailsapp/wails/v2" "github.com/wailsapp/wails/v2/pkg/options" "github.com/wailsapp/wails/v2/pkg/options/assetserver" ) var ( //go:embed all:frontend/dist assets embed.FS app *App ) func main() { // go runHttpServe() // Create an instance of the app structure app = NewApp() // Create application with options err := wails.Run(&options.App{ Title: "剑鱼-爬虫开发平台 v1.0", Width: 1224, Height: 668, AssetServer: &assetserver.Options{ Assets: assets, }, BackgroundColour: &options.RGBA{R: 255, G: 255, B: 255, A: 1}, OnStartup: app.startup, OnShutdown: app.destory, Bind: []interface{}{ app, }, }) if err != nil { println("Error:", err.Error()) } }