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