State Management with Go Web Frameworks

103 views
Skip to first unread message

GamiPress Cordial

unread,
Oct 2, 2024, 8:32:41 AM10/2/24
to golang-nuts
Go is already a fast backend language.

Why are the creators of Web Frameworks for Go, still missing the point?

I mean, things like React, Vue, and Svelte make it possible to create reusable Web Components.

Their additional strong point is State Management-- where an application's components behaviour changes according to certain actions.

Why aren't the creators of Go Web Frameworks interested in coming up with a Go Web Framework that can be used to create reusable Web Components, and that can also handle State Management on the frontend?

And this should be done in an easy to implement and easy to understand way!

Once there are Go Web Frameworks that can be used to create reusable Web Components, can handle State Management, and are easy to understand and implement, we would have brought the React, Vue and Svelte world to Go.

What's the way forward on this?

Brad Peabody

unread,
Oct 2, 2024, 12:11:47 PM10/2/24
to golang-nuts
https://www.vugu.org/ is a project I created a while ago (and had quite a bit of help and contributions from others in the community on) to build web UIs a in Vue-like fashion.  I agree that a component library would be really handy, I just personally haven't had the time to work on.

More recently there's been a lot of interest in Tailwind CSS, which I think is a great fit with Vugu.  There's also this concept of some common "headless UI" components https://headlessui.com/v1/vue which I think is also a good approach that could fit nicely with this pattern (the key difference being that most UI components are already heavily styled, which comes with initial convenience but can quickly get in your way when you're trying to customize - so this concept full separates the functionality from the styling).

My personal time for this is pretty limited, but I'm definitely interested in collaborating on ideas for a way forward.  Owen Waller has put in a lot of effort recently on the Vugu build system and other improvements as well.

Best, Brad


Owen Waller

unread,
Oct 2, 2024, 1:10:51 PM10/2/24
to Brad Peabody, golang-nuts
Hi,

Tip of the hat to Brad for the mention :)

But Brad is being far too modest. vugu was shown at GopherCon 2020. You can find his talk here:


There is also a #vugu channel on slack if you want to ask questions.

The code repo is at https://github.com/vugu/vugu if you want to help out.

At the minute we are working towards a v1.0 release. As Brad said has involved a lot of work on the build system that we use to build vugu itself and the associated tools. But, from a users perspective in terms of API's and how you would use it it is actually quite stable. For example I've used it to build a UI for an enterprise application that I look after and I've not had an issues.

Regards

Owen
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/38066e92-f751-4e5a-bbd1-619bfd362d8dn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages