Type safety with HTML templating?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
  • templ

    A language for writing HTML user interfaces in Go.

    That's one of the reasons I wrote https://github.com/a-h/templ which does support strongly typed templates, has autocomplete, and is fairly close to JSX.

  • go-formatter

    A curated list of awesome Go frameworks, libraries and software

    There are some templating languages that compile to go code and in that way provide type safety. Check the list of templating languages on the awesome go GitHub: https://github.com/avelino/awesome-go

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • turbo

    The speed of a single-page web application without having to write any JavaScript (by hotwired)

    For dynamic updates to to HTML from within the browser, it has built-in support for Hotwire's Turbo Frames (https://turbo.hotwired.dev/)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts