{"filename":"htmx-go-basic-cursorrules-prompt-file.mdc","content":"---\ndescription: \"Cursor rules for Go development with basic setup.\"\nglobs: **/*\nalwaysApply: false\n---\n// HTMX with Go (Basic Setup) .cursorrules\n\n// HTMX and Go best practices\n\nconst htmxGoBestPractices = [\n  \"Use html/template for server-side rendering\",\n  \"Implement http.HandlerFunc for handling HTMX requests\",\n  \"Utilize gorilla/mux for routing if needed\",\n  \"Use encoding/json for JSON responses\",\n  \"Implement proper error handling and logging\",\n  \"Utilize context for request cancellation and timeouts\",\n];\n\n// Folder structure\n\nconst folderStructure = `\ncmd/\n  main.go\ninternal/\n  handlers/\n  models/\n  templates/\nstatic/\n  css/\n  js/\ngo.mod\ngo.sum\n`;\n\n// Additional instructions\n\nconst additionalInstructions = `\n1. Use semantic HTML5 elements with HTMX attributes\n2. Implement proper CSRF protection\n3. Utilize HTMX extensions when needed\n4. Use hx-boost for full page navigation\n5. Follow Go's idiomatic error handling\n6. Implement graceful shutdown for the server\n7. Use Go modules for dependency management\n`;\n"}