mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 22:13:36 +08:00

* docs: add document directory * docs: add Chinese README * feat(cli): add vue3-js template Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
31 lines
424 B
Plaintext
31 lines
424 B
Plaintext
package main
|
|
|
|
import (
|
|
_ "embed"
|
|
"github.com/wailsapp/wails"
|
|
)
|
|
|
|
func basic() string {
|
|
return "Hello World!"
|
|
}
|
|
|
|
//go:embed frontend/dist/app.js
|
|
var js string
|
|
|
|
//go:embed frontend/dist/app.css
|
|
var css string
|
|
|
|
func main() {
|
|
|
|
app := wails.CreateApp(&wails.AppConfig{
|
|
Width: 1024,
|
|
Height: 768,
|
|
Title: "{{.Name}}",
|
|
JS: js,
|
|
CSS: css,
|
|
Colour: "#131313",
|
|
})
|
|
app.Bind(basic)
|
|
app.Run()
|
|
}
|