Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.26 KB

File metadata and controls

20 lines (13 loc) · 1.26 KB

here is a small documentation(or whatever interesting) for personal reference :D

Code points, characters, and runes

  • strings and characters aren't the same, strings hold bytes and not characters, rune is basically an alias for int32, it makes the program clear whether when the int value represents a code point

What is a Code point ?

  • Unicode provides a unique number (a code point). Character encoding defines each character-code point.

Conclusion

  • Know what character encoding you are using, as it may not be easy to convert between one encoding to another, using Unicode is usually the best idea as it can interpret nearly every known character.