Go Gab

A podcast about everything Go. We'll explore syntax, new libraries, its concurrency model, and what makes it unique. Anything Go-related is on the table! Gopher logo by Renee French, used under CC-BY 3.0.

http://www.briefs.fm/go-gab

subscribe
share






The Rune Data Type


Three minutes isn't nearly long enough to talk about the rune data type in Go, but I tried anyway.

Here are some good resources related to character encoding and memory allocation:

  • The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) by Joel Spolsky
  • Strings, bytes, runes and characters in Go
  • Rune literals in the Go spec

Things I didn't cover:

  • Why does byte alias an unsigned integer (uint8), but rune aliases a signed integer (int32)? Turns out if you ask that in the Go Google Group, they get a bit annoyed.
Edit

At about 2:10, I say, When it gets more complicated is when you need to represent multi-characters [sic]. I misspoke, and meant to say multibyte characters.


fyyd: Podcast Search Engine
share








 March 1, 2016  2m
 
 
curated by simonwaldherr in Golang | October 17, 2016