mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-07 01:10:02 +08:00
24 lines
341 B
Go
24 lines
341 B
Go
package main
|
|
|
|
import (
|
|
wails "github.com/wailsapp/wails/v2"
|
|
)
|
|
|
|
func main() {
|
|
|
|
// Create application with options
|
|
app := wails.CreateAppWithOptions(&wails.Options{
|
|
Title: "minmax",
|
|
Width: 1024,
|
|
Height: 768,
|
|
MinWidth: 800,
|
|
MinHeight: 600,
|
|
MaxWidth: 1280,
|
|
MaxHeight: 1024,
|
|
})
|
|
|
|
app.Bind(newBasic())
|
|
|
|
app.Run()
|
|
}
|