Fix go-header usage (#1785)

There's a known behavior of YAML template blocks using `|` that they insert a trailing newline.

To remove it add `-` a.k.a block chomping indicator.
This commit is contained in:
Anton Antonov 2021-02-26 18:21:44 +02:00 committed by GitHub
parent c3c7bcd7ac
commit 89315e00fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,7 @@ linters-settings:
regexp:
# define here regexp type values, for example
# AUTHOR: .*@mycompany\.com
template: # |
template: # |-
# put here copyright header template for source code files, for example:
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
#