VedVid / RAWIG

RAWIG (Roguelike Architecture, Written In Go) is ready to modify and expand roguelike architecture.
BSD 2-Clause "Simplified" License
16 stars 3 forks source link

For indexing json layouts and iterating through their strings, use utf8 #103

Open VedVid opened 5 years ago

VedVid commented 5 years ago

For example, use utf8.RuneCountInString instead of len. Use []rune("NewString")[1] instead of "NewString"[1].

For now, using only basic ASCII characters will suffice.