Echo impl
This commit is contained in:
		
							parent
							
								
									1a33eb5adf
								
							
						
					
					
						commit
						26224fd975
					
				
							
								
								
									
										11
									
								
								impl/echo.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								impl/echo.go
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| package impl | ||||
| 
 | ||||
| // Implementation of a echo unit | ||||
| // Comes handy when you need to mock a unit | ||||
| func Echo() *Impl { | ||||
| 	return &Impl{ | ||||
| 		Call: func(data []byte) (resp []byte, err error) { | ||||
| 			return data, nil | ||||
| 		}, | ||||
| 	} | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user