Merge commit '25a157e6614739fbd4df1da3d11d46afe72ae9a8' as 'v2'

This commit is contained in:
Travis McLane
2020-09-01 19:34:51 -05:00
208 changed files with 23636 additions and 0 deletions

43
v2/test/runtime/main.go Normal file
View File

@@ -0,0 +1,43 @@
package main
import (
wails "github.com/leaanthony/wailsv2/v2"
)
type Echo struct {
}
func (e *Echo) Echo(message string) string {
return message
}
func main() {
// Create application with options
app := wails.CreateAppWithOptions(&wails.Options{
Title: "Runtime Tester!",
Width: 850,
Height: 620,
DisableResize: false,
Fullscreen: false,
})
// You can also use the simplified call:
// app := wails.CreateApp("Tester!", 1024, 768)
// ------------- Assets ------------
// assets := wails.Assets()
// textFile, err := assets.Read("hello.txt")
// if err != nil {
// println("Unable to load asset: hello.txt")
// }
// println(textFile)
// ---------------------------------
app.Bind(newCalc("te"))
app.Bind(&Echo{})
app.Bind(&RuntimeTest{})
app.Run()
}