Add RuneCount to Page

Fixes #1266
This commit is contained in:
Bjørn Erik Pedersen 2015-07-12 11:05:37 +02:00
parent 90af334c21
commit 77c60a3440
4 changed files with 46 additions and 0 deletions

View file

@ -228,6 +228,11 @@ func Md5String(f string) string {
return hex.EncodeToString(h.Sum([]byte{}))
}
// IsWhitespace determines if the given rune is whitespace.
func IsWhitespace(r rune) bool {
return r == ' ' || r == '\t' || r == '\n' || r == '\r'
}
// Seq creates a sequence of integers.
// It's named and used as GNU's seq.
// Examples: