5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 07:00:39 +08:00
wails/v3/examples/binding
2024-03-04 10:34:14 +01:00
..
assets [runtime] Add cancelation of bound method calls and context passing 2024-03-04 10:34:14 +01:00
go.mod [runtime] Add cancelation of bound method calls and context passing 2024-03-04 10:34:14 +01:00
go.sum [runtime] Add cancelation of bound method calls and context passing 2024-03-04 10:34:14 +01:00
GreetService.go Update bindings example 2023-09-04 21:01:00 +10:00
main.go [v3, assetServer] Remove fs.FS from options and always use a http.Handler 2024-02-16 07:38:27 +01:00
models.ts [v3] Move to integer call ids for bound methods. 2023-08-19 14:25:36 +10:00
README.md [v3 examples/bindings] correct binding output + example 2023-10-31 17:24:00 -05:00

Bindings Example

This example demonstrates how to generate bindings for your application.

To generate bindings, run wails3 generate bindings -d assets 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.