copy--strings,bytes,runes and ch
2017-04-26 本文已影响0人
煜明will
- Introduction
To use strings well requires understanding not only how they work but also the difference between a byte,a character,and a rune,the difference between Unicode and UTF-8,the difference between a string and a string literal, and other even more subtle distinctions. - What is a string
In Go, a string is in effect a read-only slice of bytes.