chore: sort registered types

This commit is contained in:
andig 2025-12-05 15:29:43 +01:00
parent 1c11cc46a1
commit 03e2e0e730

View file

@ -38,7 +38,7 @@ func (r registry[T]) Get(name string) (factoryFunc[T], error) {
}
func (r registry[T]) Types() []string {
return slices.Collect(maps.Keys(r.data))
return slices.Sorted(maps.Keys(r.data))
}
func New[T any](typ string) registry[T] {