Skip to content

Commit e4d3343

Browse files
committed
fix: write header marking files as autogenerated
See GX-2234. This is the de-facto standard (see golang/go#13560 (comment)) and tools like golint will ignore such files.
1 parent 2530424 commit e4d3343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wsdlgo/encoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func (ge *goEncoder) encode(w io.Writer, d *wsdl.Definitions) error {
223223
}
224224
}
225225

226-
fmt.Fprintf(w, "package %s\n\nimport (\n", ge.packageName)
226+
fmt.Fprintf(w, "// Code generated by wsdl2go. DO NOT EDIT.\n\npackage %s\n\nimport (\n", ge.packageName)
227227
for pkg := range ge.needsStdPkg {
228228
fmt.Fprintf(w, "%q\n", pkg)
229229
}

0 commit comments

Comments
 (0)