func (n *NamespaceNamer) ToPublicName(name string) string {
	if n.shortNames {
		if parts := strings.Split(name, "."); len(parts) > 2 {
			name = strings.Join(parts[len(parts)-2:], ".")
		}
	}
	name = n.re.ReplaceAllString(name, " ")
	return strings.Replace(strings.Title(name), " ", "", -1)
}
// ToPublicName implements the go-idiomatic public name as in DefaultNamer's
// struct, but with additional treatment applied in order to remove possible
// invalid tokens from it. Final string is then converted to camel-case.
ToPublicName implements the go-idiomatic public name as in DefaultNamer's
struct, but with additional treatment applied in order to remove possible
invalid tokens from it. Final string is then converted to camel-case.
// ToPublicName implements the go - idiomatic public name as in DefaultNamer ' s // struct but with additional treatment applied in order to remove possible // invalid tokens from it . Final string is then converted to camel - case .
func (n *NamespaceNamer) ToPublicName(name string) string {
	if n.shortNames {
		if parts := strings.Split(name, "."); len(parts) > 2 {
			name = strings.Join(parts[len(parts)-2:], ".")
		}
	}
	name = n.re.ReplaceAllString(name, " ")
	return strings.Replace(strings.Title(name), " ", "", -1)
}
func ( n * NamespaceNamer ) ToPublicName ( name string ) string { if n . shortNames { if parts := strings . Split ( name , " " ) ; len ( parts ) > 2 { name = strings . Join ( parts [ len ( parts ) - 2 : ] , " " ) } } name = n . re . ReplaceAllString ( name , " " ) return strings . Replace ( strings . Title ( name ) , " " , " " , - 1 ) }
ToPublicName implements the go-idiomatic public name as in DefaultNamer's
struct, but with additional treatment applied in order to remove possible
invalid tokens from it.
ToPublicName implements the go - idiomatic public name as in DefaultNamer ' s struct but with additional treatment applied in order to remove possible invalid tokens from it .