aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/functions/strings/HasPrefix.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/strings/HasPrefix.md')
-rw-r--r--docs/content/en/functions/strings/HasPrefix.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/content/en/functions/strings/HasPrefix.md b/docs/content/en/functions/strings/HasPrefix.md
new file mode 100644
index 000000000..88a79a935
--- /dev/null
+++ b/docs/content/en/functions/strings/HasPrefix.md
@@ -0,0 +1,24 @@
+---
+title: strings.HasPrefix
+description: Reports whether a string begins with prefix.
+categories: [functions]
+keywords: []
+menu:
+ docs:
+ parent: functions
+function:
+ aliases: [hasPrefix]
+ returnType: bool
+ signatures: [strings.HasPrefix STRING PREFIX]
+relatedFunctions:
+ - strings.Contains
+ - strings.ContainsAny
+ - strings.ContainsNonSpace
+ - strings.HasPrefix
+ - strings.HasSuffix
+aliases: [/functions/hasprefix,/functions/strings.hasprefix]
+---
+
+```go-html-template
+{{ hasPrefix "Hugo" "Hu" }} → true
+```