func (c *Config) HasModule(n string) bool {
	return c.GetModule(n) != nil
}
HasModule returns whether the given config has a module with the given name.
package config
import (
	"fmt"
	multierror "github.com/hashicorp/go-multierror"
)
type Config struct {
	Modules []Module `yaml:"modules"`
}
func (c *Config) validate() error {
	for _, t := range c.Modules {
		if err := t.validate(); err != nil {
			return err
		}
	}
	return nil
}