Documentation
¶
Index ¶
- func CamelCase(src string) string
- func IsFilePermissionTooOpen(path string) (bool, error)
- func OptionCase(s string) string
- func PrintfStderr(format string, args ...interface{})
- func ProtectFile(path string) error
- func SnakeCase(s string) string
- func TitleCase(src string) string
- func WarnfStderr(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCase ¶
CamelCase converts strings like "space separated", "dash-separated", "snake_case" to "camelCase" but does not convert "TitleCase" to "camelCase"
func IsFilePermissionTooOpen ¶ added in v0.2.1
IsFilePermissionTooOpen returns true only when the `path` doesn't have the expected permission
func OptionCase ¶
OptionCase converts strings like "space separated", "snake_case", "camelCase", "TitleCase" to "option-case"
func PrintfStderr ¶ added in v0.5.6
func PrintfStderr(format string, args ...interface{})
PrintfStderr formats according to a format specifier and writes to standard error
func ProtectFile ¶ added in v0.2.1
ProtectFile changes the mode of the specified `path`
func SnakeCase ¶
SnakeCase converts strings like "space separated", "dash-separated", "camelCase", "TitleCase" to "snake_case"
func TitleCase ¶
TitleCase converts strings like "space separated", "dash-separated", "snake_case", "camelCase" to "TitleCase"
func WarnfStderr ¶ added in v0.5.6
func WarnfStderr(format string, args ...interface{})
WarnfStderr formats according to a format specifier and writes to standard error with `WARN: ` prefix
Types ¶
This section is empty.