1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Remove usage of slices in enum generator. (#516)

This commit is contained in:
Sascha L. Teichmann 2023-12-01 11:45:09 +01:00 committed by GitHub
parent d4ef21531a
commit b457dc872f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ import (
"go/format"
"log"
"os"
"slices"
"sort"
"strings"
"text/template"
)
@ -135,7 +135,7 @@ func main() {
defs = append(defs, k)
}
}
slices.Sort(defs)
sort.Strings(defs)
var source bytes.Buffer