5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 22:13:36 +08:00
wails/cmd/templates/vue3-js/main.go.template
misitebao 14cc8681bf
Add vue3-js template (#722)
* docs: add document directory

* docs: add Chinese README

* feat(cli): add vue3-js template

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2021-05-31 21:11:11 +10:00

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()
}