mirror of
https://github.com/taigrr/wails.git
synced 2026-04-10 09:01:32 -07:00
22 lines
348 B
Go
22 lines
348 B
Go
package main
|
|
|
|
import (
|
|
"testproject/mypackage"
|
|
|
|
"github.com/wailsapp/wails/v2"
|
|
)
|
|
|
|
func main() {
|
|
// Create application with options
|
|
app := wails.CreateApp("jsbundle", 1024, 768)
|
|
|
|
/***** Struct Literal *****/
|
|
|
|
// Local struct pointer literal *WORKING*
|
|
app.Bind(&Basic{})
|
|
|
|
// External struct pointer literal
|
|
app.Bind(&mypackage.Manager{})
|
|
|
|
}
|