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.TrimRight
description: Returns a slice of a given string with all trailing characters contained in the cutset removed.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -25,4 +24,3 @@ Given the string `"abba"`, trailing `"a"`'s can be removed a follows:
Numbers can be handled as well:
{{ strings.TrimRight 12 1221341221 }} → "122134"