golang/xenlight: add an empty line after DO NOT EDIT comment

When generating documentation, pkg.go.dev and godoc.org assume a comment
that immediately precedes the package declaration is a "package
comment", and should be shown in the documentation. Add an empty line
after the DO NOT EDIT comment in generated files to prevent these
comments from appearing as "package comments."

Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
This commit is contained in:
Nick Rosbrook authored and George Dunlap committed 2020-05-22 23:17:37 +01:00
1 parent abf378e648
commit 5e015d48a5
3 files changed
+3

No files matched your search

+1
View File
@@ -737,6 +737,7 @@ if __name__ == '__main__':
// This file is generated by:
// {}
//
""".format(' '.join(sys.argv))
xenlight_golang_generate_types(types=types,
+1
View File
@@ -3,6 +3,7 @@
// This file is generated by:
// gengotypes.py ../../libxl/libxl_types.idl
//
package xenlight
import (
+1
View File
@@ -3,6 +3,7 @@
// This file is generated by:
// gengotypes.py ../../libxl/libxl_types.idl
//
package xenlight
type Error int
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.