From 635fba49cfba470fbc0d6860751d446c51498973 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Mon, 14 Aug 2023 05:53:52 -0700 Subject: [PATCH] the new pkg.go.dev will incorporate the README.md file, so do not need doc.go --- doc.go | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 doc.go diff --git a/doc.go b/doc.go deleted file mode 100644 index b8b8a28..0000000 --- a/doc.go +++ /dev/null @@ -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