1
0
Fork 0
yeast/impl/echo.go

12 lines
210 B
Go
Raw Normal View History

2015-02-10 18:41:51 +00:00
package impl
// Implementation of a echo unit
// Comes handy when you need to mock a unit
func Echo() *Impl {
return &Impl{
actor: func(data []byte) (resp []byte, err error) {
2015-02-10 18:41:51 +00:00
return data, nil
},
}
}