5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 20:41:56 +08:00
wails/v3/examples/binding
Fabio Massaioli 45b2681dfc
[v3] Fix binding generator output and import paths (#3334)
* Fix relative import path computation

* Fix models output path

* Add option to generate bindings using bundled runtime

* Update binding example

* Fix testdata

* Update changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-03-22 21:18:04 +11:00
..
assets [v3] Fix binding generator output and import paths (#3334) 2024-03-22 21:18:04 +11:00
data [v3] Fix binding generator output and import paths (#3334) 2024-03-22 21:18:04 +11:00
GreetService.go [v3] Fix binding generator output and import paths (#3334) 2024-03-22 21:18:04 +11:00
main.go Add BundledAssetFileServer for bundled /wails/runtime.js. Update examples. 2024-03-17 15:08:30 +11:00
README.md [v3] Fix binding generator output and import paths (#3334) 2024-03-22 21:18:04 +11:00

Bindings Example

This example demonstrates how to generate bindings for your application.

To generate bindings, run wails3 generate bindings -b -d assets/bindings in this directory.

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

Notes

  • The bindings generator is still a work in progress and is subject to change.
  • The generated code uses wails.CallByID by default. This is the most secure and quickest way to call a function. In a future release, we will look at generating wails.CallByName too.