-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Description
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
go version 1.6.2 linux/amd64 - What operating system and processor architecture are you using (
go env)?
Ubuntu 16.04 Xenial - Linux, amd64 - What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
https://play.golang.org/p/zbRIyl8apl - What did you expect to see?
I expected the functiontoupperto be passed as an argument tomapand for the output of the program to be like this one https://play.golang.org/p/S8LsA-o5KX - What did you see instead?
template: :1:10: executing "" at <toupper>: wrong number of args for toupper: want 1 got 0
It seems like toupper is evaluated as soon as it's seen, which breaks because it's meant to be an argument to the map function.
nullbio