package
0.0.0-20250204201702-e0eeb3241113
Repository: https://github.com/akinolaemmanuel49/gocommerce.git
Documentation: pkg.go.dev

# Functions

GetIDFromURL gets the ID from the URL.
IsAdmin checks if the user is an admin.
IsAuthorized checks if the user is authorized to access a protected route.
StringToObjectID converts strings into ObjectIDs.
ValidateEmail validates an email address.
ValidateID checks to see if the path provides an :id value :: Possibly deprecated.
WriteJSON writes a JSON response to the client.