MCPcopy
hub / github.com/uber-go/fx / Annotation

Interface Annotation

annotated.go:117–120  ·  view source on GitHub ↗

Annotation specifies how to wrap a target for [Annotate]. It can be used to set up additional options for a constructor, or with [Supply], for a value.

Source from the content-addressed store, hash-verified

115// It can be used to set up additional options for a constructor,
116// or with [Supply], for a value.
117type Annotation interface {
118 apply(*annotated) error
119 build(*annotated) (interface{}, error)
120}
121
122var (
123 _typeOfError = reflect.TypeOf((*error)(nil)).Elem()

Callers 4

AnnotateFunction · 0.65
BuildMethod · 0.65
buildMethod · 0.65
NewFunction · 0.65

Implementers 5

asAnnotationannotated.go
fromAnnotationannotated.go

Calls

no outgoing calls

Tested by

no test coverage detected