@@ -510,7 +510,7 @@ func (g *Gen) writeGoDocV3(packageName string, output io.Writer, openAPI *v3.Ope
510510 generator , err := template .New ("oas3.tmpl" ).Funcs (template.FuncMap {
511511 "printDoc" : func (v string ) string {
512512 // Add schemes
513- v = "{\n \" schemes\" : {{ marshal .Schemes }} ," + v [1 :]
513+ v = "{\n \" schemes\" : " + config . LeftTemplateDelim + " marshal .Schemes " + config . RightTemplateDelim + " ," + v [1 :]
514514 // Sanitize backticks
515515 return strings .Replace (v , "`" , "`+\" `\" +`" , - 1 )
516516 },
@@ -524,9 +524,9 @@ func (g *Gen) writeGoDocV3(packageName string, output io.Writer, openAPI *v3.Ope
524524 OpenAPI : openAPI .OpenAPI ,
525525 Info : & v3.Extendable [v3.Info ]{
526526 Spec : & v3.Info {
527- Description : "{{ escape .Description}}" ,
528- Title : "{{ .Title}}" ,
529- Version : "{{ .Version}}" ,
527+ Description : config . LeftTemplateDelim + " escape .Description" + config . RightTemplateDelim ,
528+ Title : config . LeftTemplateDelim + " .Title" + config . RightTemplateDelim ,
529+ Version : config . LeftTemplateDelim + " .Version" + config . RightTemplateDelim ,
530530 TermsOfService : openAPI .Info .Spec .TermsOfService ,
531531 Contact : openAPI .Info .Spec .Contact ,
532532 License : openAPI .Info .Spec .License ,
0 commit comments