mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
@@ -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:
|
||||
|
Reference in New Issue
Block a user