// ManglePackagePath makes sure a full package path gets a safe name.
// Only the last part of the path is altered.
ManglePackagePath makes sure a full package path gets a safe name.
Only the last part of the path is altered.
// ManglePackagePath makes sure a full package path gets a safe name . // Only the last part of the path is altered .
func (l *LanguageOpts) ManglePackagePath(name string, suffix string) string {
	if name == "" {
		return suffix
	}
	target := filepath.ToSlash(filepath.Clean(name)) 
	parts := strings.Split(target, "/")
	parts[len(parts)-1] = l.ManglePackageName(parts[len(parts)-1], suffix)
	return strings.Join(parts, "/")
}
func ( l * LanguageOpts ) ManglePackagePath ( name string , suffix string ) string { if name == " " { return suffix } target := filepath . ToSlash ( filepath . Clean ( name ) ) parts := strings . Split ( target , " " ) parts [ len ( parts ) - 1 ] = l . ManglePackageName ( parts [ len ( parts ) - 1 ] , suffix ) return strings . Join ( parts , " " ) }
ManglePackagePath makes sure a full package path gets a safe name.
ManglePackagePath makes sure a full package path gets a safe name .
// preserve path