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: can add io.Writer as default argument with name is '&' in the empty? #16558
You are ignoring the error return from template.New. If you actually look at the error, you'll see:
"&" is not a valid expression in the template. AFAICT this is working as intended.