diff options
| author | Bobby <[email protected]> | 2026-01-20 14:26:45 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-01-20 14:26:45 +0530 |
| commit | 374fa73e53a3e8613f4b68e8d016c74d557d79a1 (patch) | |
| tree | 7122c52661ea3bee2137e8f87079e776d093ee25 /types | |
| parent | 2a513445a50bbe0d3a5cb13784c8ed68e1c367fa (diff) | |
| download | cafe-374fa73e53a3e8613f4b68e8d016c74d557d79a1.tar.xz cafe-374fa73e53a3e8613f4b68e8d016c74d557d79a1.zip | |
Add shortcuts utility functions for rendering and error handling
Diffstat (limited to 'types')
| -rw-r--r-- | types/template.go | 10 |
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 +} |
