// ManglePackageName makes sure a package gets a safe name.
// In case of a file system path (e.g. name contains "/" or "\" on Windows), this return only the last element.
ManglePackageName makes sure a package gets a safe name.
In case of a file system path , this return only the last element.
// ManglePackageName makes sure a package gets a safe name . // In case of a file system path ( e . g . name contains " / " or " \ " on Windows ) this return only the last element .
func (l *LanguageOpts) ManglePackageName(name, suffix string) string {
	if name == "" {
		return suffix
	}
	pth := filepath.ToSlash(filepath.Clean(name)) 
	_, pkg := path.Split(pth)                     
	return l.MangleName(swag.ToFileName(pkg), suffix)
}
func ( l * LanguageOpts ) ManglePackageName ( name , suffix string ) string { if name == " " { return suffix } pth := filepath . ToSlash ( filepath . Clean ( name ) ) _ , pkg := path . Split ( pth ) return l . MangleName ( swag . ToFileName ( pkg ) , suffix ) }
ManglePackageName makes sure a package gets a safe name.
ManglePackageName makes sure a package gets a safe name .
// preserve path // drop path