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:
December 4, 2023
:
Squashed 'docs/' changes from 4d936aee6..4dd2d6415 (35dec7c96)
Improve this page