Golang中的rune

  • golang中的string底层是由[]byte组成的
  • byte 等同于int8,经常使用来处理ascii字符
  • rune 等同于int32,经常使用来处理unicode或utf-8字符
相关文章
相关标签/搜索