Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
text/template, html/template: Multithread template parse - panic (concurrent map writes) #19170
I have a problem with multi-threading template.Parse
Go template system (text/template/template & html/template/template) contains sync.Mutex to prevent
What version of Go are you using (
From the text/template package:
It looks like you're parsing in parallel into the same Template, which isn't allowed. Nor does it really make any sense to do so.
I think this is a bug in your code, not in the template packages.