AcademyRulesDevelopment

HTMX with Go (basic setup) rules for Cursor

Development teams building lightweight server-rendered web apps in Go with HTMX who want Cursor to write idiomatic code.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/htmx-go-basic-cursorrules-prompt-file.mdc -o .cursor/rules/htmx-go-basic.mdc
htmx-go-basic.mdc

Loading the file...

What it does

A Cursor rules file for HTMX apps written in Go with the standard library. It points the AI to html/template for rendering, http.HandlerFunc handlers, idiomatic error handling, graceful shutdown and a cmd and internal folder layout.

Use cases

  1. 01Create HTMX handlers with http.HandlerFunc
  2. 02Render HTML fragments with html/template
  3. 03Add graceful shutdown to a Go web server

Questions about
HTMX with Go (basic setup) rules for Cursor.

What is HTMX with Go (basic setup) rules for Cursor used for?

Development teams building lightweight server-rendered web apps in Go with HTMX who want Cursor to write idiomatic code. A Cursor rules file for HTMX apps written in Go with the standard library. It points the AI to html/template for rendering, http.HandlerFunc handlers, idiomatic error handling, graceful shutdown and a cmd and internal folder layout.

How do I install HTMX with Go (basic setup) rules for Cursor?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/htmx-go-basic-cursorrules-prompt-file.mdc -o .cursor/rules/htmx-go-basic.mdc

Is HTMX with Go (basic setup) rules for Cursor open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is HTMX with Go (basic setup) rules for Cursor safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.