Documentation
¶
Overview ¶
Package strutil provides string utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToDashed ¶
CamelToDashed converts a CamelCaseIdentifier to a dash-separated-identifier, or a camelCaseIdentifier to a -dash-separated-identifier.
func ChopLineEnding ¶
ChopLineEnding removes a line ending ("\r\n" or "\n") from the end of s. It returns s if it doesn't end with a line ending.
func ChopTerminator ¶
ChopTerminator removes a specific terminator byte from the end of s. It returns s if it doesn't end with the specified terminator.
func FindFirstEOL ¶
FindFirstEOL returns the index of the first '\n'. When there is no '\n', the length of s is returned.
func FindLastSOL ¶
FindLastSOL returns an index just after the last '\n'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.