code: func (g Generator) Write(wr io.Writer) error {
  	var buf bytes.Buffer
  	if err := g.mockTmpl.Execute(&buf, g); err != nil {
  		return err
  	}
  	err := cleanimports.Clean(wr, buf.Bytes())
  	if err != nil {
  		err = GenerationError{
  			Err:  err,
  			Code: buf.Bytes(),
  		}
  	}
  	return err
  }
docs: // Write writes the generated code in the io.Writer