What is wrong here?

https://play.golang.org/p/8-X5w845ANi

Depends what you are trying to do? Are you sure # is the character you want, and not %? %U would print the unicode format, see https://golang.org/pkg/fmt/

It’s hard to tell you what is wrong when you are not telling us what the expected output is.

1 Like

I am trying to print every rune code point of the uppercase alphabet three times

You just need a percent sign in your format string:

fmt.Printf("\t%#U\n", i)

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.