1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +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" "go/format"
"log" "log"
"os" "os"
"slices" "sort"
"strings" "strings"
"text/template" "text/template"
) )
@ -135,7 +135,7 @@ func main() {
defs = append(defs, k) defs = append(defs, k)
} }
} }
slices.Sort(defs) sort.Strings(defs)
var source bytes.Buffer var source bytes.Buffer