hugo/docs/content/en/functions/strings/HasPrefix.md
2023-12-04 15:24:01 +01:00

544 B

title description categories keywords action aliases
strings.HasPrefix Reports whether the given string begins with the given prefix.
aliases related returnType signatures
hasPrefix
functions/strings/Contains
functions/strings/ContainsAny
functions/strings/ContainsNonSpace
functions/strings/HasSuffix
functions/collections/In
bool
strings.HasPrefix STRING PREFIX
/functions/hasprefix
/functions/strings.hasprefix
{{ hasPrefix "Hugo" "Hu" }} → true