strings.HasPrefix

strings.HasPrefix


Reports whether the given string begins with the given prefix.

{{ hasPrefix "Hugo" "Hu" }} → true