lib

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(src string) string

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

func IsFilePermissionTooOpen(path string) (bool, error)

IsFilePermissionTooOpen returns true only when the `path` doesn't have the expected permission

func OptionCase

func OptionCase(s string) string

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

func ProtectFile(path string) error

ProtectFile changes the mode of the specified `path`

func SnakeCase

func SnakeCase(s string) string

SnakeCase converts strings like "space separated", "dash-separated", "camelCase", "TitleCase" to "snake_case"

func TitleCase

func TitleCase(src string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL