Skip to content

Commit

Permalink
rename...
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fbudzynski committed Dec 18, 2024
1 parent 9e757be commit 8183ff7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/sdk/poc/generator/template_executors.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func GenerateInterface(writer io.Writer, def *Interface) {
}

func generateShowObjectMethods(writer io.Writer, hm *ShowObjectMethod) {
printTo(writer, ResourceHelperMethodTemplate, hm)
printTo(writer, ShowObjectMethodTemplate, hm)
}

func generateOptionsStruct(writer io.Writer, operation *Operation) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/sdk/poc/generator/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ var (
structTemplateContent string
StructTemplate, _ = template.New("structTemplate").Parse(structTemplateContent)

//go:embed templates/resource_helper_method.tmpl
resourceHelperMethodTemplateContent string
ResourceHelperMethodTemplate, _ = template.New("helperMethodTemplate").Parse(resourceHelperMethodTemplateContent)
//go:embed templates/show_object_method.tmpl
showObjectMethodTemplateContent string
ShowObjectMethodTemplate, _ = template.New("helperMethodTemplate").Parse(showObjectMethodTemplateContent)

//go:embed templates/dto_declarations.tmpl
dtoDeclarationsTemplateContent string
Expand Down

0 comments on commit 8183ff7

Please sign in to comment.