code: func (g Generator) Imports() map[string]string {
  	imports := imports.New(g.Package())
  	for _, m := range g.Methods() {
  		s := m.signature()
  		imports.AddImportsFrom(s.Params())
  		imports.AddImportsFrom(s.Results())
  	}
  	return imports.Imports()
  }
docs: // Imports returns all the packages that have to be imported for the