Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Google App Engine for Go. Parent comment
s := "Какая-то строка" for _, rune := range s { // do something with rune 'К', 'a', ... }
s := "Какая-то строка" runes := []int(s) sub := string(runes[:8]) // "Какая-то"
s[:8] // "Кака"
While this is all not intuitive (you have to know what does what), I find it rather easy.
There are no comments on this comment yet.
While this is all not intuitive (you have to know what does what), I find it rather easy.