You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 function toupper to be passed as an argument to map and 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.
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
go version
)?go version 1.6.2 linux/amd64
go env
)?Ubuntu 16.04 Xenial - Linux, amd64
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
I expected the function
toupper
to be passed as an argument tomap
and for the output of the program to be like this one https://play.golang.org/p/S8LsA-o5KXIt seems like
toupper
is evaluated as soon as it's seen, which breaks because it's meant to be an argument to themap
function.The text was updated successfully, but these errors were encountered: