mauricelam / genny

Elegant generics for Go
MIT License
24 stars 6 forks source link

Add generated file comment which follows the regex convention. #8

Closed viswajithiii closed 5 years ago

viswajithiii commented 5 years ago

Description

Add a comment line at the top of all generated files that matches the regex which was established as a convention by Rob Pike. (See https://github.com/golang/go/issues/13560#issuecomment-288457920 for the thread.)

A lot of Go tooling (including GitHub, which kindly hides the diff) has standardized around this -- they use this to identify which files constitute generated code, and special-case (or ignore) them, as appropriate.

viswajithiii commented 5 years ago

@mauricelam Can you review this PR? 🙂