News for hackers. Stuff that matters.
Re:Better HTTP server routing in Go 1.22 by qaq on Monday October 16, 2023 @09:30AM (#37899632)
Good one less external dependency. As a side note sqlc + postgres + templ (kindah jsx for go) + htmx + tailwinds has being extremely productive stack to develop in
Re:Better HTTP server routing in Go 1.22 by austinpena on Monday October 16, 2023 @09:52AM (#37899905)
I really wish that templ had intellij support! Love the idea
Re:Better HTTP server routing in Go 1.22 by qaq on Monday October 16, 2023 @05:36PM (#37907005)
I think that is in the works ? VS Code support is top notch
Re:Better HTTP server routing in Go 1.22 by austinpena on Saturday October 21, 2023 @03:29PM (#37969820)
Anywhere I can see updates?
Re:Better HTTP server routing in Go 1.22 by brunoluiz on Monday October 16, 2023 @10:31AM (#37900368)
I thought you had mistyped template there but actually no, templ is some other package different from the stdlib one. I had a quick look on its documentation and it seems quite neat!

I was hoping that bud with svelte compilation would fill this gap, but looks like templ is a nicer alternative.

Re:Better HTTP server routing in Go 1.22 by nebqr on Monday October 16, 2023 @11:38AM (#37901355)
How do you handle tailwind here? I really like the idea of adding tailwind but if it means using npm I think I'd rather just write my own css.
Re:Better HTTP server routing in Go 1.22 by simantel on Monday October 16, 2023 @01:27PM (#37903206)
I'm not OP, but Tailwind ships a binary you can use (by bundling up a JS runtime): https://tailwindcss.com/blog/standalone-cli
Re:Better HTTP server routing in Go 1.22 by perfmode on Monday October 16, 2023 @04:14PM (#37905861)
I’ve been having a great experience so far using sqlc.

I’ve gotta take a look at htmx.