mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-05 02:22:11 +08:00
18 lines
295 B
Go
18 lines
295 B
Go
package main
|
|
|
|
type Person struct {
|
|
name string
|
|
}
|
|
|
|
// GreetService is a service that greets people
|
|
type GreetService struct {
|
|
}
|
|
|
|
func (*GreetService) Greet(name string) string {
|
|
return "Hello " + name
|
|
}
|
|
|
|
func (*GreetService) GreetPerson(person Person) string {
|
|
return "Hello " + person.name
|
|
}
|