copy--strings,bytes,runes and characters in Go

  • 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.

你可能感兴趣的:(copy--strings,bytes,runes and characters in Go)