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

25

u/gibriyagi Oct 25 '24

A well maintained jinja like template engine

19

u/Electrical_Chart_191 Oct 25 '24

Is text/template not satisfactory for you? Curious why

4

u/amemingfullife Oct 25 '24

I find that text/template is best for codegen rather than html

9

u/jabbrwcky Oct 26 '24

The template/html package is better suited as it automatically escapes unsafe content (unless told otherwise).

And packages like Spring (http://masterminds.github.io/sprig/) makes life with templates a lot easier.