jet
quicktemplate
Our great sponsors
jet | quicktemplate | |
---|---|---|
26 | 12 | |
2,010 | 3,001 | |
- | - | |
8.1 | 0.0 | |
7 days ago | 10 months ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jet
-
Open-sourcing SQX, a way to build flexible database models in Go
We are really happy using jet. It lets you write type safe SQL and can read the results into structs- including joins into slice fields.
-
The "preferred" way of mapping SQL results in Golang is honestly, subjectively, awful, how to deal with this
Check go-jet https://github.com/go-jet/jet
- Comparing database/sql, GORM, sqlx, and sqlc
-
goscanql - conveniently reading joined SQL data into structs
https://github.com/go-jet/jet does a similar thing.
-
Does Go, has something similar to Laravel eloquent (ORM) ?
Try go-jet, it generates the models based on the schema, provides typed column names.
-
Any mid sized / big open source code base in golang that makes use of SQL DBs?
I have tried doing that, but was unable to get it to work. I posted about it in a discussion here: https://github.com/go-jet/jet/discussions/215
-
Automatic CRUD code generetor?
Jet might be what you're looking for - https://github.com/go-jet/jet
- How to Work with SQL Databases in Go
-
ORM or no ORM (and which ones)?
Use sql builder https://github.com/go-jet/jet.
- GitHub - go-jet/jet: Type safe SQL builder with code generation and automatic query result data mapping
quicktemplate
-
Templ: A language for writing HTML user interfaces in Go
Here are a couple:
https://github.com/julvo/htmlgo
https://github.com/rohanthewiz/element
I'm sure there are many more.
The thing about these is that performance is often not as good as when using templates, especially when the templates are compiled to native code. Quicktemplate [1] is still the leader here IMO, and I don't think the OP project brings much that couldn't be done pretty easily with QT.
-
Full stack web dev with Go.
From my experience you don't really need a distinct frontend framework for web development in Go. I've been able to use quicktemplate for some of my projects for rendering HTML pretty effectively. I've written about using it here.
-
What is the current ideal choice for server-side rendered web frameworks?
If the question is about templating libraries, then I've seen people use other libraries than the html/template, like https://github.com/hoisie/mustache or https://github.com/valyala/quicktemplate
-
The templ templating language: 2 years later
I originally started out trying to add features to quicktemplate, but didn't get any engagement, so went my own way: https://github.com/valyala/quicktemplate/issues/80
-
Go Time #266: Is htmx the way to Go?
I've been using quick template with htmx and I'm really enjoying the combo. As a mostly backend developer it's a pretty intuitive approach. Now if someone could just build something to simplify working with CSS...
- Ask HN: Slimvoice Alternative?
-
Using multiple repositories in your CI builds
Like with the previous post, we're going to use djinn-ci/imgsrv as an example of using multiple sources in a build manifest. If we look at the top of the manifest file, we will see that it requires three repositories to build. These are, the source code for djinn-ci/imgsrv itself, golang/tools, and valyala/quicktemplate, defined like so,
-
Why Hugo’s Documentation Sucks
I like Hugo quite a lot, but I don't like Go's standard library templates. I wonder if it is possible to use https://github.com/valyala/quicktemplate with Hugo?
-
[HELP]XML encoding and decoding
For encoding, the receivers usually want very specific encoding (namespaces, nil as xsi:nil, not omitted value...) - templating with text/template or github.com/valyala/quicktemplate is easier on the long run, than fight with xml.Marshal and the other end's unspoken assumptions.
-
Templ - a new templating language for Go, with autocomplete, syntax highlighting and formatting
The "Hello World" example is up at https://github.com/a-h/qt-lsp - it's called qt-lsp because I started down this track looking to build IDE support for quicktemplate - https://github.com/valyala/quicktemplate/issues/80 - but didn't think it was practical when I dug into the design of quicktemplate more.
What are some alternatives?
sqlc - Generate type-safe code from SQL
pongo2 - Django-syntax like template-engine for Go
goqu - SQL builder and query library for golang
Jet Template Engine for GO - Jet template engine
SQLBoiler - Generate a Go ORM tailored to your database schema.
hero - A handy, fast and powerful go template engine.
migrate - Database migrations. CLI and Golang library.
fasttemplate - Simple and fast template engine for Go
go-queryset - 100% type-safe ORM for Go (Golang) with code generation and MySQL, PostgreSQL, Sqlite3, SQL Server support. GORM under the hood.
goview - Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.
pgcapture - A scalable Netflix DBLog implementation for PostgreSQL
gofpdf