1234567891011121314151617181920212223242526 |
- package di
- type Annotated struct {
- // If specified, this will be used as the name for all non-error values returned
- // by the constructor. For more information on named values, see the documentation
- // for the fx.Out type.
- //
- // A name option may not be provided if a group option is provided.
- Name string
- // If specified, this will be used as the group name for all non-error values returned
- // by the constructor. For more information on value groups, see the package documentation.
- //
- // A group option may not be provided if a name option is provided.
- //
- // Similar to group tags, the group name may be followed by a `,flatten`
- // option to indicate that each element in the slice returned by the
- // constructor should be injected into the value group individually.
- Group string
- // Target is the constructor or value being annotated with fx.Annotated.
- Target interface{}
- // Close is the function being closed when container is destroy
- Close interface{}
- }
|