TypedProvider instances return instances of a given type. They may return singletons or a new instance each time
| 29 | // TypedProvider instances return instances of a given type. They may return singletons or |
| 30 | // a new instance each time |
| 31 | type TypedProvider[T any] interface { |
| 32 | Get() (T, error) |
| 33 | } |
| 34 | |
| 35 | type typedSingletonProvider[T any] struct { |
| 36 | value T |
no outgoing calls
no test coverage detected