summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-01-20 14:26:45 +0530
committerBobby <[email protected]>2026-01-20 14:26:45 +0530
commit374fa73e53a3e8613f4b68e8d016c74d557d79a1 (patch)
tree7122c52661ea3bee2137e8f87079e776d093ee25 /types
parent2a513445a50bbe0d3a5cb13784c8ed68e1c367fa (diff)
downloadcafe-374fa73e53a3e8613f4b68e8d016c74d557d79a1.tar.xz
cafe-374fa73e53a3e8613f4b68e8d016c74d557d79a1.zip
Add shortcuts utility functions for rendering and error handling
Diffstat (limited to 'types')
-rw-r--r--types/template.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/types/template.go b/types/template.go
new file mode 100644
index 0000000..11f60f9
--- /dev/null
+++ b/types/template.go
@@ -0,0 +1,10 @@
+package types
+
+import "github.com/gofiber/fiber/v2"
+
+type TemplateError struct {
+ Context *fiber.Ctx
+ PageTitle string
+ ErrorMessage error
+ StatusCode int
+}