Live data from Hacker News

Ask HN: What GO web framework do you use?

news.ycombinator.com

21–26 of 26 posts

Re: Ask HN: What GO web framework do you use?

#22
post #10

Earlier quoted context omitted.

> templates package How do you like the template package ? Can you compare it to Jinja/Twig ?

I have never used Jinja/Twig, but I have used handlebars, ERB, JSX and other similar templating systems. Overall, I find Go's template system to be a bit clunky but it certainly gets the job done. The template system is fairly minimal so it feels mostly like working with HTML, but it gives you a few tools to use.. mainly passing data down the template/sub-templates and the ability to define template functions/helpers…

Thanks, I guess I should try the standard lib before anything else then.

Re: Ask HN: What GO web framework do you use?

#23
post #8

I use the standard library. My entire business runs on it, html/css all through the standard library (templates package). I use embed to embed all assets in the binary itself. "go build" and then "scp" the binary to the production server and "systemctl restart appserver"

Love that you do this. I have a few enterprise projects that do exactly the same thing (minus the embed in one, just scp and untar). Can’t beat the simplicity.

Regarding the original question we use fiber.io for a few systems and have loved it’s capabilities and performance.

Re: Ask HN: What GO web framework do you use?

#24
post #11

I use Fiber [0] in production for a $4M ARR company and never had any issues even at peak traffic. Took less than a month to start with and integrate and it is a joy to use. [0] https://github.com/gofiber/fiber

Same experience for several internal systems. Fiber is amazing.

Re: Ask HN: What GO web framework do you use?

#25
post #16

Why do most Go framework websites look like they were made by uni students for their side projects? https://gin-gonic.com/ https://echo.labstack.com/ https://gobuffalo.io/ Compare that to Laravel for example: https://laravel.com/

1.7 MB for the echo landing page, 3 MB for laravel landing page. I think that's why

Re: Ask HN: What GO web framework do you use?

#26

For simple, battle-tested web server, you can't go wrong with net/http. A couple of us are working on Bud ( http://github.com/livebud/bud ), which aims to be a full-stack web framework for Go, similar to Laravel or Rails. The project is getting better very quickly! If you're working on a greenfield project and want more out of the box, I'd encourage you to give Bud a try!

Just stared it! I use Go at work and it’s a joy but I’m currently Lea Laravel because it makes getting something out so easy! I’m was blown away yesterday when I learned how to handle file uploads in laravel, and Breeze allows me to have out of the box user auth in about 5 mins?

I’ve built all of that in Go and it was probably two months of work…

This is not to discourage you, it would be absolutely terrific to have a proper full-stack framework in Go! And just as an aside from what I see in laravel, if making part of the framework commercial is a way to give the project a boost I think it’d be worth it!

Tailwind also comes to mind following the same model. Full open source but if you want a working starter template, payments, teams, subscriptions, etc… I’d pay for that!

Post reply on HN