mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-29 10:47:10 +00:00
660 B
660 B
title | description | categories | keywords | action | aliases | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
strings.TrimSuffix | Returns the given string, removing the suffix from the end of the string. |
|
|
{{ strings.TrimSuffix "a" "aabbaa" }} → aabba
{{ strings.TrimSuffix "aa" "aabbaa" }} → aabb
{{ strings.TrimSuffix "aaa" "aabbaa" }} → aabbaa