List returns all registered components as a slice.
()
| 128 | |
| 129 | // List returns all registered components as a slice. |
| 130 | func List() []*Component { |
| 131 | muComponents.RLock() |
| 132 | defer muComponents.RUnlock() |
| 133 | return slices.Collect(maps.Values(components)) |
| 134 | } |
| 135 | |
| 136 | // ListOf returns all registered components whose type is assignable to the type T. |
| 137 | func ListOf[T any]() []*Component { |
no outgoing calls