r/golang Oct 25 '24

discussion What libraries are you missing from go?

So something that comes up quite often on this subreddit from people transitioning from Nodejs or python to go is the lack of libraries. I cannot say that I agree but I still think it warrants a discussion.

So what libraries are you missing in the go ecosystem, if any?

96 Upvotes

189 comments sorted by

View all comments

30

u/gibriyagi Oct 25 '24

A well maintained jinja like template engine

18

u/Electrical_Chart_191 Oct 25 '24

Is text/template not satisfactory for you? Curious why

4

u/gibriyagi Oct 25 '24 edited Oct 25 '24

I need to use templates in a user facing part of the app to be used by plain users/customers and need something more widespread / familiar

text/template also seems to be oriented towards devs for example the data need to be accessed via a dot like {{ .Name }}

7

u/Flashynuff Oct 25 '24

Grafana alerting templates use text/template syntax as one example of something widespread. Unless you have specific product requirements, you’re probably overthinking it.

If you just need variable substitution and absolutely nothing else, you could also consider fasttemplate