mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[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:
co-authored by
Lea Anthony
parent
f0986a6441
commit
45b2681dfc
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user