mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
parent
90af334c21
commit
77c60a3440
4 changed files with 46 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue