Golang中的rune

  • golang中的string底層是由[]byte組成的
  • byte 等同於int8,經常使用來處理ascii字符
  • rune 等同於int32,經常使用來處理unicode或utf-8字符
相關文章
相關標籤/搜索