Documentation
¶
Overview ¶
Package naming converts external identifiers into idiomatic Go identifiers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unexported ¶
Unexported converts input to an unexported Go identifier in camelCase.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter converts identifiers using an immutable set of initialisms. It is safe for concurrent use.
func NewConverter ¶
NewConverter returns a converter containing the standard Go initialisms plus each additional canonical spelling. Matching is case-insensitive.
For example, NewConverter("GPU") converts "gpu_limit" to "GPULimit".
func (*Converter) Unexported ¶
Unexported converts input to an unexported Go identifier in camelCase.
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
Scope allocates unique identifiers within a namespace. Its zero value is ready to use, and its methods are safe for concurrent use. A Scope must not be copied after first use.