func (m *Module) HasVersion(ver string) bool {
	if m == nil {
		return false
	}

	for _, v := range m.Versions {
		if v == ver {
			return true
		}
	}

	return false
}
// HasVersions returns true if the module has the given version.
HasVersions returns true if the module has the given version.
// HasVersions returns true if the module has the given version .
func (m *Module) HasVersion(ver string) bool {
	if m == nil {
		return false
	}
	for _, v := range m.Versions {
		if v == ver {
			return true
		}
	}
	return false
}
func ( m * Module ) HasVersion ( ver string ) bool { if m == nil { return false } for _ , v := range m . Versions { if v == ver { return true } } return false }
HasVersions returns true if the module has the given version.
HasVersions returns true if the module has the given version .