Dopamine AI Prompt Library
Open search
Menu
Submitted by
bea_backend23 prompts

Htmx Go Basic

Cursor rules for Go development with basic setup.

Added Nov 26, 2026

Prompt

htmx-go-basic.mdMarkdown · 40 lines · about 230 tokens
// HTMX with Go (Basic Setup) .cursorrules
// HTMX and Go best practices
const htmxGoBestPractices = [
"Use html/template for server-side rendering",
"Implement http.HandlerFunc for handling HTMX requests",
"Utilize gorilla/mux for routing if needed",
"Use encoding/json for JSON responses",
"Implement proper error handling and logging",
"Utilize context for request cancellation and timeouts",
];
// Folder structure
const folderStructure = `
cmd/
main.go
internal/
handlers/
models/
templates/
static/
css/
js/
go.mod
go.sum
`;
// Additional instructions
const additionalInstructions = `
1. Use semantic HTML5 elements with HTMX attributes
2. Implement proper CSRF protection
3. Utilize HTMX extensions when needed
4. Use hx-boost for full page navigation
5. Follow Go's idiomatic error handling
6. Implement graceful shutdown for the server
7. Use Go modules for dependency management
`;

About this prompt

Content type
Code
Industries
Software Development
Models
Cursor
Languages
English
Length
40 lines, about 230 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
bea_backend23 prompts
Profile

More from bea_backend

View all

React Formengine AI Form Builder

Cursor rules for generating React forms from screenshots, PDFs, HTML, or text descriptions with validated FormEngine JSON schema. Renders through RSuite, Material UI, or Mantine.