From 0ccb26ab783b94367ee2604a61fda9d77159b9ed Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 5 Mar 2025 13:51:22 -0300 Subject: [PATCH] refactor(smalltrip,exception): rename exceptions package to exception, singular form --- smalltrip/{exceptions => exception}/400.go | 2 +- smalltrip/{exceptions => exception}/500.go | 2 +- smalltrip/{exceptions => exception}/exceptions.go | 2 +- smalltrip/{exceptions => exception}/middleware.go | 2 +- smalltrip/{exceptions => exception}/severity.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename smalltrip/{exceptions => exception}/400.go (99%) rename smalltrip/{exceptions => exception}/500.go (99%) rename smalltrip/{exceptions => exception}/exceptions.go (99%) rename smalltrip/{exceptions => exception}/middleware.go (99%) rename smalltrip/{exceptions => exception}/severity.go (99%) diff --git a/smalltrip/exceptions/400.go b/smalltrip/exception/400.go similarity index 99% rename from smalltrip/exceptions/400.go rename to smalltrip/exception/400.go index 98aea5a..dd43ee3 100644 --- a/smalltrip/exceptions/400.go +++ b/smalltrip/exception/400.go @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package exceptions +package exception import ( "errors" diff --git a/smalltrip/exceptions/500.go b/smalltrip/exception/500.go similarity index 99% rename from smalltrip/exceptions/500.go rename to smalltrip/exception/500.go index 77f31de..a8613fe 100644 --- a/smalltrip/exceptions/500.go +++ b/smalltrip/exception/500.go @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package exceptions +package exception import ( "errors" diff --git a/smalltrip/exceptions/exceptions.go b/smalltrip/exception/exceptions.go similarity index 99% rename from smalltrip/exceptions/exceptions.go rename to smalltrip/exception/exceptions.go index 24d8de4..ca8dca9 100644 --- a/smalltrip/exceptions/exceptions.go +++ b/smalltrip/exception/exceptions.go @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package exceptions +package exception import ( "errors" diff --git a/smalltrip/exceptions/middleware.go b/smalltrip/exception/middleware.go similarity index 99% rename from smalltrip/exceptions/middleware.go rename to smalltrip/exception/middleware.go index c59cce9..841044e 100644 --- a/smalltrip/exceptions/middleware.go +++ b/smalltrip/exception/middleware.go @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package exceptions +package exception import ( "context" diff --git a/smalltrip/exceptions/severity.go b/smalltrip/exception/severity.go similarity index 99% rename from smalltrip/exceptions/severity.go rename to smalltrip/exception/severity.go index f9b5e16..bd68e50 100644 --- a/smalltrip/exceptions/severity.go +++ b/smalltrip/exception/severity.go @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package exceptions +package exception import ( "encoding"