snivilised / cobrass

🐲 Assistant for cli applications using cobra
https://pkg.go.dev/github.com/snivilised/cobrass
MIT License
1 stars 0 forks source link

update maps/slice imports and use slog #223

Closed plastikfan closed 7 months ago

plastikfan commented 10 months ago

Version 1.21.3 now includes maps and slices as standard. The current imports:

import (
    "golang.org/x/exp/maps"
    "golang.org/x/exp/slices"
)

... need to be updated to not use the experimental versions

Replace zap with slog

plastikfan commented 7 months ago

strange thing is, there is now no Keys function on maps, so now reverting to use lo.Keys instead, which really shouldn't be necessary.