mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-05 02:22:11 +08:00

* 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>
18 lines
380 B
Go
18 lines
380 B
Go
package main
|
|
|
|
import "github.com/wailsapp/wails/v3/examples/binding/data"
|
|
|
|
// GreetService is a service that greets people
|
|
type GreetService struct {
|
|
}
|
|
|
|
// Greet greets a person
|
|
func (*GreetService) Greet(name string) string {
|
|
return "Hello " + name
|
|
}
|
|
|
|
// GreetPerson greets a person
|
|
func (*GreetService) GreetPerson(person data.Person) string {
|
|
return "Hello " + person.Name
|
|
}
|