90ff9d57b8
This reverts commit fb6085da39
.
14 lines
216 B
Go
14 lines
216 B
Go
package hello
|
|
|
|
type HelloSayer interface {
|
|
SayHello() string
|
|
}
|
|
|
|
type helloSayerImpl struct{}
|
|
|
|
func (helloSayerImpl) SayHello() string { return "hello" }
|
|
|
|
func NewHelloSayer() HelloSayer {
|
|
return helloSayerImpl{}
|
|
}
|