News for hackers. Stuff that matters.
Re:Go 1.14 by Townley on Tuesday February 25, 2020 @05:22PM (#22418135)
Any Go developers with past experience in "heavier" frameworks have thoughts on giving it a try?

I enjoy working with "batteries included" frameworks currently, and value the approach of "Here's an ORM... here's a template language... here's an auth system... use or remove them as you see fit"

I've been told that the Go standard library is fully-featured enough that it can be considered a framework in its own right, but I haven't heard how converts from the Django/Rails world feel about the completeness of that "framework"

Re:Go 1.14 by majewsky on Wednesday February 26, 2020 @06:29AM (#22422098)
I have written several HTTP-based services in Go. When you only expose an API, net/http is 99% of what you need. There are some useful addons like https://github.com/gorilla, and you'll probably pull in a library for auth.

For services with a web GUI, net/http is not comparable to the likes of Rails or Django. There is a templating library, but it's pretty barebones and you'll have to put quite a lot of boilerplate (or additional libraries) on top to make it work for anything beyond hello-world scale. Also you need libraries for all those secondary concerns that are usually handled on the framework level, like CSRF protection.

Re:Go 1.14 by ptman on Wednesday February 26, 2020 @07:14AM (#22422277)
you might not need more advanced csrf protection than a cookie samesite policy.
Re:Go 1.14 by zadokshi on Monday March 02, 2020 @12:16AM (#22461841)
Then throw a hidden input field with a CSRF token in your form and your done.

Not sure what the big deal is here.

Re:Go 1.14 by zchrykng on Tuesday February 25, 2020 @05:34PM (#22418243)
> ... Go standard library is fully-featured enough that it can be considered a framework in its own right...

Maybe compared to writing a server in C/C++... ORM doesn't exist in the standard library. Templating is okay. Auth doesn't exist.

Re:Go 1.14 by zadokshi on Monday March 02, 2020 @12:15AM (#22461838)
People choose go to escape the world of bloated ORM tools.

SQL sprinkled with a little bit of prudent caching works pretty well in go.

Re:Go 1.14 by ptman on Wednesday February 26, 2020 @07:13AM (#22422276)
There's revel, which is rails-inspired. And beego, and aah and buffalo. But after those I'm looking into stdlib + chi and libraries over frameworks.