Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDependencyByName ¶
func GetDependencyByName[A, B any](getter dependency.Getter, name string, fn func(A) B) (B, error)
GetDependencyByName is a helper function that gets a dependency by name and calls a function with the dependency as an argument. The functor (A -> B) is applied to the dependency to either get a sub dependency or to return the dependency itself.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.