We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 863daa0 + 77c359f commit 5555cc1Copy full SHA for 5555cc1
staging/src/k8s.io/code-generator/cmd/go-to-protobuf/protobuf/generator.go
@@ -371,7 +371,7 @@ func (b bodyGen) doStruct(sw *generator.SnippetWriter) error {
371
`, b.t)
372
373
if len(options) > 0 {
374
- sort.Sort(sort.StringSlice(options))
+ sort.Strings(options)
375
for _, s := range options {
376
fmt.Fprintf(out, " option %s;\n", s)
377
}
@@ -399,7 +399,7 @@ func (b bodyGen) doStruct(sw *generator.SnippetWriter) error {
399
400
extras = append(extras, fmt.Sprintf("%s = %s", k, v))
401
402
- sort.Sort(sort.StringSlice(extras))
+ sort.Strings(extras)
403
if len(extras) > 0 {
404
fmt.Fprintf(out, " [")
405
fmt.Fprint(out, strings.Join(extras, ", "))
0 commit comments