Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copywrite headers break build tags in Golang #92

Open
dhiaayachi opened this issue Sep 12, 2023 · 0 comments
Open

copywrite headers break build tags in Golang #92

dhiaayachi opened this issue Sep 12, 2023 · 0 comments

Comments

@dhiaayachi
Copy link

Go build tags need to be at the top line of the file to be considered by go compiler.

Right now, running copyright headers in go file with build tags would break the tags as the header will be inserted before the build tags.

The expected result is for copywrite headers to either:

  • offer a way to exclude/include files based on build tags
  • detect build tags and insert the header after
@dhiaayachi dhiaayachi changed the title copywrite headers break build tags copywrite headers break build tags in Golang Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant