// isBadEmbedName reports whether name is the base name of a file that
// can't or won't be included in modules and therefore shouldn't be treated
// as existing for embedding.
//
// Copied from cmd/go/internal/load.isBadEmbedName.
isBadEmbedName reports whether name is the base name of a file that
can't or won't be included in modules and therefore shouldn't be treated
as existing for embedding.

Copied from cmd/go/internal/load.isBadEmbedName.
// isBadEmbedName reports whether name is the base name of a file that // can ' t or won ' t be included in modules and therefore shouldn ' t be treated // as existing for embedding . // // Copied from cmd / go / internal / load . isBadEmbedName .
func isBadEmbedName(name string) bool {
	if err := module.CheckFilePath(name); err != nil {
		return true
	}
	switch name {
	case "":
		return true
	case ".bzr", ".hg", ".git", ".svn":
		return true
	}
	return false
}
func isBadEmbedName ( name string ) bool { if err := module . CheckFilePath ( name ) ; err != nil { return true } switch name { case " " : return true case " " , " " , " " , " " : return true } return false }
isBadEmbedName reports whether name is the base name of a file that
can't or won't be included in modules and therefore shouldn't be treated
as existing for embedding.
isBadEmbedName reports whether name is the base name of a file that can ' t or won ' t be included in modules and therefore shouldn ' t be treated as existing for embedding .
// Empty string should be impossible but make it bad. // Version control directories won't be present in module.