HUGO
News Docs Themes Community GitHub

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: January 1, 0001
Improve this page