12 lines
210 B
Go
12 lines
210 B
Go
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) {
|
|
return data, nil
|
|
},
|
|
}
|
|
}
|