Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1038

What happens when a string literal is used to initialize a string variable in Golang? [closed]

$
0
0

A string is made up of bytes.A string literal is made up of UTF-8 code points (characters).

I find these two statements pretty confusing. Also what is the difference between a byte and a code-point. And why are strings in Golang decomposed into runes.


Viewing all articles
Browse latest Browse all 1038

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>