Skip to content

Commit 62fb7b3

Browse files
authored
Update "generated file" hint to follow go convention. (#161)
Go has a documented[1] convention identifying "generated" files: > To convey to humans and machine tools that code is generated, > generated source should have a line that matches the following > regular expression (in Go syntax): > ^// Code generated .* DO NOT EDIT\.$ [1]: https://golang.org/pkg/cmd/go/internal/generate/
1 parent c1261e8 commit 62fb7b3

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

python/rpdk/go/templates/main.go.tple

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Code generated by 'cfn generate', changes will be undone by the next invocation. DO NOT EDIT.
12
package main
23

34
import (
@@ -10,11 +11,6 @@ import (
1011
"{{ path }}"
1112
)
1213

13-
/*
14-
This file is autogenerated, do not edit;
15-
changes will be undone by the next 'cfn generate' command.
16-
*/
17-
1814
// Handler is a container for the CRUDL actions exported by resources
1915
type Handler struct{}
2016

python/rpdk/go/templates/types.go.tple

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1+
// Code generated by 'cfn generate', changes will be undone by the next invocation. DO NOT EDIT.
2+
// Updates to this type are made my editing the schema file and executing the 'generate' command.
13
package resource
24

3-
/*
4-
This file is autogenerated, do not edit;
5-
changes will be undone by the next 'generate' command.
6-
7-
Updates to this type are made my editing the schema file
8-
and executing the 'generate' command
9-
*/
105
{% for model_name, properties in models.items() %}
116

127
{% if model_name == "ResourceModel" %}

0 commit comments

Comments
 (0)