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:
parent
d4ef21531a
commit
b457dc872f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue