In this post, I show you the bare minimum you need to know how to do UTF-8 string manipulation in Go safely. Update 09/03/2022: Someone at Reddit pointed out that counting runes isn’t enough to slice strings correctly, given that Unicode has multi-codepoint glyphs, such as for flags. I’ve updated the post to reflect that but couldn’t find a concise and straightforward solution. Read also: Back to basics: Writing an application using Go and PostgreSQL and Homelab: Intel NUC with the ESXi...