What problem does it solve?
This Skill streamlines the development of web applications by integrating Muxt for HTML templating and sqlc for type-safe database query generation, ensuring consistency between your frontend, backend logic, and database schema.
Core Features & Use Cases
- Type-Safe Code Generation: Generates Go code from HTML templates and SQL queries, catching errors at compile time.
- Project Structure Guidance: Provides recommended layouts for small and large applications.
- Database Integration: Demonstrates embedding sqlc-generated query types and handling transactions.
- Form-to-Query Alignment: Maps HTML form fields directly to SQL query parameters using struct generation.
- Error Handling: Implements safe, user-facing error messages by wrapping database errors.
- End-to-End Testing: Guides on testing the full stack using
httptest, domtest, and chromedp.
Quick Start
Follow the recommended project layout to integrate Muxt with sqlc for your web application.