Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'

This commit is contained in:
Bjørn Erik Pedersen
2023-05-22 16:47:07 +02:00
341 changed files with 3107 additions and 4238 deletions

View File

@@ -0,0 +1,16 @@
---
title: strings.HasPrefix
description: Tests whether a string begins with prefix.
categories: [functions]
menu:
docs:
parent: functions
keywords: [strings]
signature: ["hasPrefix STRING PREFIX","strings.HasPrefix STRING PREFIX"]
relatedfuncs: [hasSuffix]
aliases: [/functions/hasprefix/]
---
```go-html-template
{{ hasPrefix "Hugo" "Hu" }} → true
```