chomp

将以下英文翻译为中文:

chomp

https://gohugo.io/functions/chomp/

Removes any trailing newline characters.

语法

chomp INPUT
strings.Chomp INPUT

Useful in a pipeline to remove newlines added by other processing (e.g., markdownify).

1
{{ chomp "<p>Blockhead</p>\n" }} → "<p>Blockhead</p>"