the new pkg.go.dev will incorporate the README.md file, so do not need doc.go
							parent
							
								
									7277a32d08
								
							
						
					
					
						commit
						635fba49cf
					
				
							
								
								
									
										33
									
								
								doc.go
								
								
								
								
							
							
						
						
									
										33
									
								
								doc.go
								
								
								
								
							|  | @ -1,33 +0,0 @@ | |||
| /* | ||||
| Package errhttp provides types errors that make dealing with HTTP response errors easier. | ||||
| 
 | ||||
| Example | ||||
| 
 | ||||
| 	import "github.com/reiver/go-errhttp" | ||||
| 	 | ||||
| 	// ...
 | ||||
| 	 | ||||
| 	if err := something(); nil != err { | ||||
| 		return errhttp.BadRequestWrap(err) | ||||
| 	} | ||||
| 	 | ||||
| 	// ...
 | ||||
| 	 | ||||
| 	switch err.(type) { | ||||
| 	case errhttp.BadRequest: | ||||
| 		//@TODO
 | ||||
| 	case errhttp.NotFound: | ||||
| 		//@TODO
 | ||||
| 	case errhttp.InternalServerError: | ||||
| 		//@TODO
 | ||||
| 	 | ||||
| 	case errhttp.ClientError: | ||||
| 		//@TODO
 | ||||
| 	case errhttp.ServerError: | ||||
| 		//@TODO
 | ||||
| 	 | ||||
| 	default: | ||||
| 		//@TODO
 | ||||
| 	} | ||||
| */ | ||||
| package errhttp | ||||
		Loading…
	
		Reference in New Issue