code: func New(pkg string, variable string) (*Generator, error) {
  	scope, docs, err := parsePackageSource(pkg)
  	if err != nil {
  		return nil, err
  	}
  
  	importer, funcs, err := analyzeCode(scope, docs, variable)
  	if err != nil {
  		return nil, err
  	}
  
  	return &Generator{
  		Name:    docs.Name,
  		Imports: importer.Imports(),
  		funcs:   funcs,
  	}, nil
  }
docs: // New initialises a new Generator for the corresponding package's variable
  //
  // Returns an error if the package or variable are invalid