mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 15:30:37 +08:00
25 lines
417 B
Plaintext
25 lines
417 B
Plaintext
package main
|
|
|
|
import (
|
|
"github.com/leaanthony/mewn"
|
|
"github.com/wailsapp/wails"
|
|
)
|
|
|
|
func basic() string {
|
|
return "Hello World!"
|
|
}
|
|
|
|
func main() {
|
|
|
|
app := wails.CreateApp(&wails.AppConfig{
|
|
Width: 1024,
|
|
Height: 768,
|
|
Title: "{{.Name}}",
|
|
JS: mewn.String("./frontend/dist/app.js"),
|
|
CSS: mewn.String("./frontend/dist/app.css"),
|
|
Colour: "#131313",
|
|
})
|
|
app.Bind(basic)
|
|
app.Run()
|
|
}
|