Skip to content

Commit

Permalink
Update comments in generated code to align with Go standards
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Dec 21, 2024
1 parent 24fbe35 commit 29b70c1
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 29b70c1

Please sign in to comment.