[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>
This commit is contained in:
Fabio Massaioli
2024-03-22 21:18:04 +11:00
committed by GitHub
co-authored by Lea Anthony
parent f0986a6441
commit 45b2681dfc
56 changed files with 364 additions and 372 deletions
+3 -5
View File
@@ -1,8 +1,6 @@
package main
type Person struct {
name string
}
import "github.com/wailsapp/wails/v3/examples/binding/data"
// GreetService is a service that greets people
type GreetService struct {
@@ -14,6 +12,6 @@ func (*GreetService) Greet(name string) string {
}
// GreetPerson greets a person
func (*GreetService) GreetPerson(person Person) string {
return "Hello " + person.name
func (*GreetService) GreetPerson(person data.Person) string {
return "Hello " + person.Name
}