@@ -1102,7 +1102,7 @@ func (g *Generator) resolveFileName(d StructDirectives, typeName string) string
11021102func (g * Generator ) writeGoModelDirective (buf * strings.Builder , goTypeName string , useDirective bool ) {
11031103 if g .Config .UseGqlGenDirectives || useDirective {
11041104 pkgPath := g .P .GetPackageImportPath (goTypeName , g .Config .ModelPath )
1105- buf . WriteString ( fmt .Sprintf ( " @goModel(model: \" %s.%s\" )" , pkgPath , goTypeName ) )
1105+ fmt .Fprintf ( buf , " @goModel(model: \" %s.%s\" )" , pkgPath , goTypeName )
11061106 }
11071107}
11081108
@@ -1121,7 +1121,7 @@ func (g *Generator) writeDeprecatedDirective(buf *strings.Builder, deprecated bo
11211121 if reason != "" {
11221122 // Escape quotes in the reason
11231123 escapedReason := strings .ReplaceAll (reason , `"` , `\"` )
1124- buf . WriteString ( fmt .Sprintf ( ` @deprecated(reason: "%s")` , escapedReason ) )
1124+ fmt .Fprintf ( buf , ` @deprecated(reason: "%s")` , escapedReason )
11251125 } else {
11261126 buf .WriteString (" @deprecated" )
11271127 }
@@ -1130,7 +1130,7 @@ func (g *Generator) writeDeprecatedDirective(buf *strings.Builder, deprecated bo
11301130// writeGoEnumDirective writes the @goEnum directive if enabled
11311131func (g * Generator ) writeGoEnumDirective (buf * strings.Builder , valuePkgPath string , valueGoName string ) {
11321132 if g .Config .UseGqlGenDirectives {
1133- buf . WriteString ( fmt .Sprintf ( " @goEnum(value: \" %s.%s\" )" , valuePkgPath , valueGoName ) )
1133+ fmt .Fprintf ( buf , " @goEnum(value: \" %s.%s\" )" , valuePkgPath , valueGoName )
11341134 }
11351135}
11361136
0 commit comments