Which data type in Go is used to represent a single Unicode character?

  • byte
  • char
  • rune
  • string
In Go, the rune data type is used to represent a single Unicode character. Runes are based on the UTF-8 encoding scheme and allow developers to work with individual characters in Unicode strings. The rune type is synonymous with int32 and provides Unicode support.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *