strings.HasPrefix
Reports whether the given string begins with the given prefix.
Syntax
strings.HasPrefix STRING PREFIX
Returns
bool
Alias
hasPrefix
{{ hasPrefix "Hugo" "Hu" }} → trueLast updated:
April 10, 2025
:
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65' (283e97783)
Improve this page