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:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page