mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 05:11:29 +08:00
24 lines
411 B
Go
24 lines
411 B
Go
package services
|
|
|
|
import (
|
|
"github.com/wailsapp/wails/v3/examples/binding/models"
|
|
)
|
|
|
|
type GreetService struct {
|
|
SomeVariable int
|
|
lowercase string
|
|
Parent *models.Person
|
|
}
|
|
|
|
func (*GreetService) Greet(name string) string {
|
|
return "Hello " + name
|
|
}
|
|
|
|
func (g *GreetService) GetPerson() *models.Person {
|
|
return g.Parent
|
|
}
|
|
|
|
func (g *GreetService) SetPerson(person *models.Person) {
|
|
g.Parent = person
|
|
}
|