gojson icon indicating copy to clipboard operation
gojson copied to clipboard

Add flag to prepend comment to file

Open metalmatze opened this issue 7 years ago • 1 comments

I'd like to add a comment like // Code generated by gojson. DO NOT EDIT. to my generated file. I don't want to do this manually. So I propose adding -comment flag which would just prepend that line to the file.

metalmatze avatar Jun 26 '17 09:06 metalmatze

Yeah, this is a good idea. I actually can't think of a reason not to include this in all files (many other code generation tools in Go already do), so we may not even need to add a -comment flag to do so.

ChimeraCoder avatar Jun 29 '17 03:06 ChimeraCoder