Bump pkglib to go1.22 version

This commit is contained in:
Tom Wiesing 2024-04-08 23:37:04 +02:00
parent 84799afda2
commit 2d1f3e3819
No known key found for this signature in database
9 changed files with 31 additions and 36 deletions

View file

@ -138,11 +138,12 @@ func MarshalMap(m map[string]any) string {
var builder strings.Builder
builder.WriteString("array(")
collection.IterateSorted(m, func(k string, v any) {
collection.IterateSorted(m, func(k string, v any) bool {
builder.WriteString(MarshalString(k))
builder.WriteString("=>")
builder.WriteString(MarshalJSON(v))
builder.WriteString(",")
return true
})
builder.WriteString(")")