Skip to content

Commit

Permalink
Merge pull request #2197 from alexandear/fix-generated-hdr
Browse files Browse the repository at this point in the history
Update comments in generated code to align with Go standards
  • Loading branch information
jackc authored Dec 21, 2024
2 parents 24fbe35 + 17cd368 commit e5d321f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "erb"

rule '.go' => '.go.erb' do |task|
erb = ERB.new(File.read(task.source))
File.write(task.name, "// Do not edit. Generated from #{task.source}\n" + erb.result(binding))
File.write(task.name, "// Code generated from #{task.source}. DO NOT EDIT.\n\n" + erb.result(binding))
sh "goimports", "-w", task.name
end

Expand Down
3 changes: 2 additions & 1 deletion pgtype/int.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pgtype/int_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pgtype/integration_benchmark_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pgtype/zeronull/int.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pgtype/zeronull/int_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5d321f

Please sign in to comment.