1
0
Fork 0
yeast/impl/echo.go

13 lines
235 B
Go

package impl
// Implementation of a echo unit
// Comes handy when you need to mock a unit
func Echo(name string) *Impl {
return &Impl{
name: name,
actor: func(data []byte) (resp []byte, err error) {
return data, nil
},
}
}