5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 04:29:14 +08:00
wails/v3/examples/binding
2025-04-25 20:51:34 +10:00
..
assets Initial Windows testing completed. 7 issues. 2025-04-25 20:51:34 +10:00
data [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
GreetService.go [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
main.go [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
README.md Initial Windows testing completed. 7 issues. 2025-04-25 20:51:34 +10:00

Bindings Example

This example demonstrates how to manually generate bindings for your application.

To generate bindings, run wails3 generate bindings -clean -b -d assets/bindings in this directory. The bindings will be available in assets/bindings/github.com/wailsapp/wails/v3/examples/binding. Examine assets/index.html to see how these bindings are used. Run the main application to see it in action.

See more options by running wails3 generate bindings --help.

Notes

  • The generated code uses wails.CallByID by default. This is the most robust way to call a function.