Versions in this module Expand all Collapse all v0 v0.1.6 Nov 24, 2023 v0.1.5 Nov 24, 2023 Changes in this version + func Graph(ctx context.Context, wd string, env []string, pattern []string, name string, ...) (string, []error) + func LoadPackages(ctx context.Context, wd string, env []string, tags string, patterns []string) ([]*packages.Package, []error) + type CytospaceBuilder struct + func (builder *CytospaceBuilder) String() string + type CytospaceEdge struct + Data CytospaceEdgeData + type CytospaceEdgeData struct + Id string + Source string + Target string + type CytospaceElements struct + Edges []CytospaceEdge + Nodes []CytospaceNode + type CytospaceNode struct + Data CytospaceNodeData + type CytospaceNodeData struct + Content string + Id string + Parent *string + Shape string + Subgraph bool + type Field struct + Name string + Out []types.Type + Parent types.Type + Pkg *types.Package + Pos token.Pos + type GenerateOptions struct + Header []byte + PrefixOutputFile string + Tags 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 GraphBuilder interface + String func() string + type GraphvizBuilder struct + func (builder *GraphvizBuilder) String() string + 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, tags string, patterns []string) (*Info, []error) + type Injector struct + FuncName string + ImportPath string + Pos token.Pos + 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 + type WireErr struct + func (w *WireErr) Error() string + func (w *WireErr) Message() string + func (w *WireErr) Position() token.Position