gofmt
This commit is contained in:
		
							parent
							
								
									ebf3a9aa38
								
							
						
					
					
						commit
						6fb67141fe
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		
							
								
								
									
										14
									
								
								pkg.go
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								pkg.go
									
										
									
									
									
								
							|  | @ -10,15 +10,15 @@ import ( | ||||||
| 
 | 
 | ||||||
| type Error struct { | type Error struct { | ||||||
| 	Wrapped error | 	Wrapped error | ||||||
| 	File string | 	File    string | ||||||
| 	Line int | 	Line    int | ||||||
| 	Data interface{} | 	Data    interface{} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type LogCallback func(Error) | type LogCallback func(Error) | ||||||
| 
 | 
 | ||||||
| var ( | var ( | ||||||
| 	logCallback LogCallback | 	logCallback   LogCallback | ||||||
| 	baseDirLength int | 	baseDirLength int | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | @ -57,9 +57,9 @@ func create(err error, data interface{}) error { | ||||||
| 
 | 
 | ||||||
| 	wrapped := Error{ | 	wrapped := Error{ | ||||||
| 		Wrapped: err, | 		Wrapped: err, | ||||||
| 		File: file, | 		File:    file, | ||||||
| 		Line: line, | 		Line:    line, | ||||||
| 		Data: data, | 		Data:    data, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	callback(wrapped) | 	callback(wrapped) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue