func effectiveNameNew(pkg *internal.PackageNew) string {
	if pkg.Name != "main" {
		return pkg.Name
	}
	var prefix string // package path without version
	if pkg.Path[len(pkg.Path)-3:] == "/v1" {
		prefix = pkg.Path[:len(pkg.Path)-3]
	} else {
		prefix, _, _ = module.SplitPathVersion(pkg.Path)
	}
	_, base := path.Split(prefix)
	return base
}
// effectiveNameNew returns either the command name or package name.
effectiveNameNew returns either the command name or package name.
// effectiveNameNew returns either the command name or package name .
func effectiveNameNew(pkg *internal.PackageNew) string {
	if pkg.Name != "main" {
		return pkg.Name
	}
	var prefix string 
	if pkg.Path[len(pkg.Path)-3:] == "/v1" {
		prefix = pkg.Path[:len(pkg.Path)-3]
	} else {
		prefix, _, _ = module.SplitPathVersion(pkg.Path)
	}
	_, base := path.Split(prefix)
	return base
}
func effectiveNameNew ( pkg * internal . PackageNew ) string { if pkg . Name != " " { return pkg . Name } var prefix string if pkg . Path [ len ( pkg . Path ) - 3 : ] == " " { prefix = pkg . Path [ : len ( pkg . Path ) - 3 ] } else { prefix , _ , _ = module . SplitPathVersion ( pkg . Path ) } _ , base := path . Split ( prefix ) return base }
effectiveNameNew returns either the command name or package name.
effectiveNameNew returns either the command name or package name .
// package path without version