Versions in this module Expand all Collapse all v0 v0.4.2 Apr 3, 2020 Changes in this version + type Field struct + Name string + Out []types.Type + Parent types.Type + Pkg *types.Package + Pos token.Pos + type GenerateOptions struct + Header []byte + PrefixOutputFile string + type GenerateResult struct + Content []byte + Errs []error + OutputPath string + PkgPath string + func Generate(ctx context.Context, wd string, env []string, patterns []string, ...) ([]GenerateResult, []error) + func (gen GenerateResult) Commit() error + type IfaceBinding struct + Iface types.Type + Pos token.Pos + Provided types.Type + type Info struct + Fset *token.FileSet + Injectors []*Injector + Sets map[ProviderSetID]*ProviderSet + func Load(ctx context.Context, wd string, env []string, patterns []string) (*Info, []error) + type Injector struct + FuncName string + ImportPath string + func (in *Injector) String() string + type InjectorArg struct + Args *InjectorArgs + Index int + type InjectorArgs struct + Name string + Pos token.Pos + Tuple *types.Tuple + type ProvidedType struct + func (pt ProvidedType) Arg() *InjectorArg + func (pt ProvidedType) Field() *Field + func (pt ProvidedType) IsArg() bool + func (pt ProvidedType) IsField() bool + func (pt ProvidedType) IsNil() bool + func (pt ProvidedType) IsProvider() bool + func (pt ProvidedType) IsValue() bool + func (pt ProvidedType) Provider() *Provider + func (pt ProvidedType) Type() types.Type + func (pt ProvidedType) Value() *Value + type Provider struct + Args []ProviderInput + HasCleanup bool + HasErr bool + IsStruct bool + Name string + Out []types.Type + Pkg *types.Package + Pos token.Pos + Varargs bool + type ProviderInput struct + FieldName string + Type types.Type + type ProviderSet struct + Bindings []*IfaceBinding + Fields []*Field + Imports []*ProviderSet + InjectorArgs *InjectorArgs + PkgPath string + Pos token.Pos + Providers []*Provider + Values []*Value + VarName string + func (set *ProviderSet) For(t types.Type) ProvidedType + func (set *ProviderSet) Outputs() []types.Type + type ProviderSetID struct + ImportPath string + VarName string + func (id ProviderSetID) String() string + type Value struct + Out types.Type + Pos token.Pos