Documentation ¶
Overview ¶
Package strutil is used only for naming package, variable, etc inside the go template.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToLetterPrefix ¶
ToLetterPrefix transform s when s is prefixed with non-letter character, e.g. 1Partcarbon -> Z_1Partcarbon
func ToNonGoIdent ¶
ToNonGoIdent transform s when s is equal with go identifier, e.g. switch -> switch_z
func ToSnake ¶
ToSnake tranforms s into snake_case and replace non-alphanumeric characters with underscore '_'
func TrimRepeatedChar ¶
TrimRepeatedChar trim repeated given char in any position in the s. e.g. (s: "a,,b,,,c", char: ',') -> a,b,c
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.