// Create creates a file for migration
Create creates a file for migration
// Create creates a file for migration
func (s ServiceTool) Create(ctx context.Context, wr io.Writer, p CreateParams) (err error) {
	if err = p.Validate(); err != nil {
		return errors.Wrapf(err, "Invalid create params")
	}
	return s.getTemplate().ExecuteTemplate(wr, "tpl", p)
}
func ( s ServiceTool ) Create ( ctx context . Context , wr io . Writer , p CreateParams ) ( err error ) { if err = p . Validate ( ) ; err != nil { return errors . Wrapf ( err , " " ) } return s . getTemplate ( ) . ExecuteTemplate ( wr , " " , p ) }
Create creates a file for migration
Create creates a file for migration