Strings, bytes, runes and characters in Go - The Go Blog

The Go Programming Language Go ▽ Documents Packages The Project Help Blog Four years of Go Arrays, slices (and strings): The mechanics of 'append' golang.org Install Go A Tour of Go Go Documentation Go Mailing List Go on Google+ Go+ Community Go on Twitter Blog index The Go Blog Strings, bytes, runes and characters in Go 23 October 2013 The previous blog post explained how slices work in Go, using a number of examples to illustrate the mechanism behind their implementation. Building on that background, this post discusses strings in Go. At first, strings might seem too simple a topic for a blog post, but to use them well requires understanding not only how they work, but also the difference between a byte, a character, and a rune, the difference between Unicode and UTF-8, the difference between a string a...

Linked on 2016-10-26 18:12:01 | Similar Links