5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 02:22:11 +08:00
wails/v3/examples/binding/GreetService.go
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

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
}