Created
June 11, 2019 09:00
-
-
Save plutov/a5e602d2f94e4e3dd753c6f0489b4025 to your computer and use it in GitHub Desktop.
wails-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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