Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'

This commit is contained in:
Bjørn Erik Pedersen
2021-10-31 13:53:55 +01:00
162 changed files with 80 additions and 636 deletions

View File

@@ -1,7 +1,6 @@
---
title: strings.TrimPrefix
description: Returns a given string s without the provided leading prefix string. If s doesn't start with prefix, s is returned unchanged.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -22,4 +21,4 @@ Given the string `"aabbaa"`, the specified prefix is only removed if `"aabbaa"`
{{ strings.TrimPrefix "a" "aabbaa" }} → "abbaa"
{{ strings.TrimPrefix "aa" "aabbaa" }} → "bbaa"
{{ strings.TrimPrefix "aaa" "aabbaa" }} → "aabbaa"
{{ strings.TrimPrefix "aaa" "aabbaa" }} → "aabbaa"