Extracted from sweeper to share across Go projects: - ssr: template caching and SSR writer - stringsx: string helpers
9 lines
218 B
Go
9 lines
218 B
Go
// Package stringsx provides string-related helpers.
|
|
package stringsx
|
|
|
|
import "strings"
|
|
|
|
// IsBlank reports whether a string contains only whitespace.
|
|
func IsBlank(s string) bool {
|
|
return strings.TrimSpace(s) == ""
|
|
}
|