Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Package = &ifacereader.Package{ Name: "pkg1", Path: "pkgs/pkg1", Interfaces: []*ifacereader.Interface{ { Name: "Thingable", TypeParams: []*ifacereader.TypeParam{ {Name: "T", Type: "constraints.Complex"}, {Name: "V", Type: "thingy.Constraint"}, }, Methods: []*ifacereader.Method{ { Name: "Identity", Inputs: []*ifacereader.Tuple{ {VariableName: "in", Type: "T"}, }, Outputs: []*ifacereader.Tuple{ {VariableName: "", Type: "T"}, }, }, { Name: "Transform", Inputs: []*ifacereader.Tuple{ {VariableName: "in", Type: "T"}, }, Outputs: []*ifacereader.Tuple{ {VariableName: "", Type: "V"}, }, }, }, }, }, }
Functions ¶
func AddImports ¶
func AddImports(imports *uniqpkg.UniquePackagePaths) *uniqpkg.UniquePackagePaths
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.