// Tidy runs go mod tidy on all modules in the repository.
Tidy runs go mod tidy on all modules in the repository.
// Tidy runs go mod tidy on all modules in the repository .
func (r *Repository) Tidy() error {
	modules, err := r.Modules()
	if err != nil {
		return fmt.Errorf("couldn't tidy modules: %v", err)
	}
	for _, m := range modules {
		err = r.golist.Tidy(m)
		if err != nil {
			return err
		}
	}
	return nil
}
func ( r * Repository ) Tidy ( ) error { modules , err := r . Modules ( ) if err != nil { return fmt . Errorf ( " " , err ) } for _ , m := range modules { err = r . golist . Tidy ( m ) if err != nil { return err } } return nil }
Tidy runs go mod tidy on all modules in the repository.
Tidy runs go mod tidy on all modules in the repository .