1
0
mirror of https://github.com/kataras/iris.git synced 2026-07-31 16:39:52 +00:00

add x/errors.OK, Create, NoContent and NoContentOrNotModified package-level generic functions as custom service helpers

This commit is contained in:
Gerasimos (Makis) Maropoulos
2024-01-04 03:33:00 +02:00
parent 56754ff5cc
commit 1ae4e71176
9 changed files with 345 additions and 108 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ import (
// errors.Unavailable
// errors.DataLoss
var (
Custom = errors.E("CUSTOM_CANONICAL_ERROR_NAME", iris.StatusBadRequest)
Custom = errors.Register("CUSTOM_CANONICAL_ERROR_NAME", iris.StatusBadRequest)
)
func main() {