strings.HasPrefix
Reports whether the given string begins with the given prefix.
Syntax
strings.HasPrefix STRING PREFIX
Returns
bool
Alias
hasPrefix
{{ hasPrefix "Hugo" "Hu" }} → true
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page