Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 23 Go HTML Projects
-
gotenberg
A developer-friendly API for converting numerous document formats into PDF files, and more!
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
bluemonday
bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS
-
render
Go package for easily rendering JSON, XML, binary data, and HTML templates responses. (by unrolled)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
pufferpanel
PufferPanel is an open source game server management panel, designed for both small networks and personal use
-
html-to-markdown
⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules. (by JohannesKaufmann)
-
nmap-formatter
A tool that allows you to convert NMAP results to html, csv, json, markdown, graphviz (dot) or sqlite. Simply put it's nmap converter.
-
goview
Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.
-
ide
A Go code editor. With debugging and Autocomplete. 一个 Go 代码编辑器,具有 DEBUGGING 和 AUTOCOMPLETE (by thestrukture)
-
renderer
Simple, lightweight and faster response (JSON, JSONP, XML, YAML, HTML, File) rendering package for Go (by thedevsaddam)
-
goq
A declarative struct-tag-based HTML unmarshaling or scraping package for Go built on top of the goquery library
-
reader
reader is for your command line what the “readability” view is for modern browsers: A lightweight tool offering better readability of web pages on the CLI. (by mrusme)
-
go-wkhtmltopdf
Go bindings for wkhtmltopdf and high-level HTML to PDF conversion interface (by adrg)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Use a server-side headless browser such as puppeteer to convert the HTML to PDF. This is the most reliable free option, but requires a server. If you need to use it in production, we recommend you use Gotenberg.
Instead I ended up using other go lang pkgs like https://github.com/alioygur/gores or https://github.com/unrolled/render. Render also supports rails style partial, so it helps to better structure HTML templates.
Some time ago, I started a project called "xq", which is a command-line XML and HTML beautifier and content extractor written in Go. Using this project as an example, I want to show what I did to make it a little bit more discoverable and usable by other people.
Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10I'm really happy you like it. :) And thank you for your comment, I really appreciate newcomer viewpoints especially.
Have a look at the `Classes` helper component already available: https://github.com/maragudk/gomponents/blob/main/components/...
Yeah, I'm not a total fan of the runtime panics, but it was a tradeoff where I chose in favour of API simplicity and readability. In practice, it works out well, because you catch any typos at development time.
I've had elements and attributes in separate packages before, but then you can't dot-import both packages and not have name clashes, and have to either prefix elements or attributes with the package name, which makes the code much less readable. Again, a tradeoff. :)
Project mention: NMAP-formatter: convert NMAP results to HTML, CSV, JSON, graphviz (dot), SQLite | news.ycombinator.com | 2024-01-26
The renderer package, which we use for handling API responses in the Golang backend todo app, provides a straightforward way to parse HTML templates. Under the hood, it uses the Go html/template package. However, you can use the default Go html/template package, depending on your preference.
Project mention: Write Advanced CSS (Not Just HTML) Now Directly in Go | news.ycombinator.com | 2024-04-17
Project mention: Are there any CLIs or ways to save articles as markdown documents and search them that you would recommend? | /r/commandline | 2023-05-18this tool just reads a URL, trims all the fat (reader view like in Firefox) and then can output either to your screen or to MD using the -o switch
I haven't needed to create PDFs in Go but a quick search brought this library up: https://github.com/adrg/go-wkhtmltopdf
Go HTML related posts
-
Migrating Next.js App to GO + Templ & HTMX
-
Write Advanced CSS (Not Just HTML) Now Directly in Go
-
Create PDFs with Tailwind
-
🤓 My top 3 Go packages that I wish I'd known about earlier
-
Go + Hypermedia - A Learning Journey (Part 1)
-
Templ: A language for writing HTML user interfaces in Go
-
PDF generation with Gotenberg
-
A note from our sponsor - InfluxDB
www.influxdata.com | 15 May 2024
Index
What are some of the best open-source HTML projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | semaphore | 9,416 |
2 | gotenberg | 6,973 |
3 | chroma | 4,195 |
4 | minify | 3,598 |
5 | bluemonday | 2,986 |
6 | render | 1,904 |
7 | docconv | 1,486 |
8 | pufferpanel | 1,198 |
9 | go-wkhtmltopdf | 1,009 |
10 | xq | 757 |
11 | html-to-markdown | 722 |
12 | gomponents | 727 |
13 | htmlquery | 702 |
14 | xpath | 654 |
15 | nmap-formatter | 602 |
16 | goview | 405 |
17 | ide | 357 |
18 | Jade | 348 |
19 | renderer | 261 |
20 | goq | 251 |
21 | elem-go | 254 |
22 | reader | 219 |
23 | go-wkhtmltopdf | 211 |
Sponsored