diff options
Diffstat (limited to 'docs/content/en/functions/chomp.md')
-rw-r--r-- | docs/content/en/functions/chomp.md | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/docs/content/en/functions/chomp.md b/docs/content/en/functions/chomp.md deleted file mode 100644 index 861e7ecc4..000000000 --- a/docs/content/en/functions/chomp.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: chomp -toc: true -description: Removes any trailing newline characters. -categories: [functions] -menu: - docs: - parent: functions -keywords: [trim] -signature: - - "chomp INPUT" - - "strings.Chomp INPUT" -relatedfuncs: [truncate] ---- - -Useful in a pipeline to remove newlines added by other processing (e.g., [`markdownify`](/functions/markdownify/)). - -```go-html-template -{{ chomp "<p>Blockhead</p>\n" }} → "<p>Blockhead</p>" -``` |