mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename folder
This commit is contained in:
@@ -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
|
||||
+10
@@ -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
|
||||
Reference in New Issue
Block a user