Skip to content

Instantly share code, notes, and snippets.

@plutov
Created June 11, 2019 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutov/a5e602d2f94e4e3dd753c6f0489b4025 to your computer and use it in GitHub Desktop.
Save plutov/a5e602d2f94e4e3dd753c6f0489b4025 to your computer and use it in GitHub Desktop.
wails-2
package main
import (
"github.com/leaanthony/mewn"
"github.com/plutov/packagemain/cpustats/pkg/sys"
"github.com/wailsapp/wails"
)
func main() {
js := mewn.String("./frontend/dist/app.js")
css := mewn.String("./frontend/dist/app.css")
stats := &sys.Stats{}
app := wails.CreateApp(&wails.AppConfig{
Width: 512,
Height: 512,
Title: "CPU Usage",
JS: js,
CSS: css,
Colour: "#131313",
})
app.Bind(stats)
app.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment