mirror of https://github.com/jackc/pgx.git
Update comments in generated code to align with Go standards
parent
24fbe353ed
commit
17cd36818c
2
Rakefile
2
Rakefile
|
@ -2,7 +2,7 @@ require "erb"
|
||||||
|
|
||||||
rule '.go' => '.go.erb' do |task|
|
rule '.go' => '.go.erb' do |task|
|
||||||
erb = ERB.new(File.read(task.source))
|
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
|
sh "goimports", "-w", task.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// Do not edit. Generated from pgtype/int.go.erb
|
// Code generated from pgtype/int.go.erb. DO NOT EDIT.
|
||||||
|
|
||||||
package pgtype
|
package pgtype
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// Do not edit. Generated from pgtype/int_test.go.erb
|
// Code generated from pgtype/int_test.go.erb. DO NOT EDIT.
|
||||||
|
|
||||||
package pgtype_test
|
package pgtype_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// Code generated from pgtype/integration_benchmark_test.go.erb. DO NOT EDIT.
|
||||||
|
|
||||||
package pgtype_test
|
package pgtype_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// Do not edit. Generated from pgtype/zeronull/int.go.erb
|
// Code generated from pgtype/zeronull/int.go.erb. DO NOT EDIT.
|
||||||
|
|
||||||
package zeronull
|
package zeronull
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// Do not edit. Generated from pgtype/zeronull/int_test.go.erb
|
// Code generated from pgtype/zeronull/int_test.go.erb. DO NOT EDIT.
|
||||||
|
|
||||||
package zeronull_test
|
package zeronull_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue