rename folder

This commit is contained in:
sanjeed5
2025-02-27 00:04:07 +05:30
parent 519c3fa882
commit f7fa52c998
879 changed files with 0 additions and 0 deletions
@@ -0,0 +1,7 @@
---
description: Applies best practices for logging, project structure, and environment variable usage specifically to the main application file.
globs: cmd/main.go
---
- Implement proper logging with Fiber's Logger middleware
- Follow Fiber's best practices for project structure
- Use environment variables for configuration
@@ -0,0 +1,8 @@
---
description: Focuses on routing, CSRF protection, context handling, and template usage within the internal handlers directory.
globs: internal/handlers/**/*.go
---
- Use Fiber's App.Get/Post/etc for routing HTMX requests
- Implement CSRF protection with Fiber middleware
- Utilize Fiber's Context for handling HTMX-specific headers
- Use Fiber's template engine for server-side rendering
@@ -0,0 +1,10 @@
---
description: Applies general best practices for HTMX, Go, and Fiber development to Go files. Focuses on Fiber framework usage.
globs: **/*.go
---
- Use Fiber's HTML rendering for server-side templates
- Implement Fiber's routing system for HTMX requests
- Utilize Fiber's middleware for request processing
- Use Fiber's JSON methods for API responses
- Implement proper error handling with Fiber's error handling
- Utilize Fiber's static file serving for assets
@@ -0,0 +1,17 @@
---
description: Enforces specific folder structure at root level.
globs: *
---
The recommended folder structure is:
cmd/
main.go
internal/
handlers/
models/
templates/
static/
css/
js/
go.mod
go.sum