code: func (l *LanguageOpts) ManglePackageName(name, suffix string) string {
  	if name == "" {
  		return suffix
  	}
  	pth := filepath.ToSlash(filepath.Clean(name)) // preserve path
  	_, pkg := path.Split(pth)                     // drop path
  	return l.MangleName(swag.ToFileName(pkg), suffix)
  }
docs: // 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.