Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instantiate ¶
Instantiate instantiates the generic package, giving the resulting package the given name. The bindings are a map from generic parameter name to the instantiated type of the parameter. After Instantiate returns, the AST of pkg has been altered, the FileSet has been updated to match and the new package has been typechecked. Note: the AST may be altered even if Instantiate returns an error.
func ParseBindingSpec ¶
Parse a string of the form "param:type", where param is an identifier and type is a possibly-qualified type name, like "fmt.Stringer" or "golang.org/x/net/context.Context".
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.