Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateTitle ¶
PrivateTitle is like strings.Title(), except the first Unicode letter in s is mapped to its Unicode lower case.
Types ¶
type Newliner ¶
type Newliner []string
Newliner represents a string list that is aggregated as a sequence of Go source code lines
type Uniquer ¶
type Uniquer struct {
// contains filtered or unexported fields
}
Uniquer represents a collection of unique strings.
func NewUniquer ¶
NewUniquer creates a new collection of unique strings. Duplicate strings will be distinguished by having suffix appended to it
func (*Uniquer) Add ¶
Add adds a new string to the collection. If the string already exists, it is appended with u.Suffix repeatedly until it is unique. Uses the original string value this method was called with as auxiliary value. Returns the resulting unique name.
func (*Uniquer) AddValue ¶
AddValue adds a new string to the collection like Add, but with a specific auxiliary value that can be later retrieved with Values or JoinValues. Returns the resulting unique name.
func (*Uniquer) Join ¶
Join concatenates all of the unique strings in u, separated by string sep, and sorted by the index or order in which the string was added.
func (*Uniquer) JoinValues ¶
JoinValues concatenates all of values associated with the unique strings in u, separated by string sep, and sorted by the index or order in which the string was added.