Documentation ¶
Index ¶
- func ConvertToCamelCase(input interface{}, params ...interface{}) (interface{}, error)
- func ConvertToKebabCase(input interface{}, params ...interface{}) (interface{}, error)
- func ConvertToPascaleCase(input interface{}, params ...interface{}) (interface{}, error)
- func ConvertToSnakeCase(input interface{}, params ...interface{}) (interface{}, error)
- func DownloadFile(item models.Item) error
- func Generate16bitSecret(input interface{}, params ...interface{}) (interface{}, error)
- func Generate64BitSecret(input interface{}, params ...interface{}) (interface{}, error)
- func GenerateFile(item models.Item)
- func GenerateUUID(input interface{}, params ...interface{}) (interface{}, error)
- func JoinPath(input interface{}, params ...interface{}) (interface{}, error)
- func LowerFirst(input interface{}, params ...interface{}) (interface{}, error)
- func Pluralize(input interface{}, params ...interface{}) (interface{}, error)
- func ReadEnvValue(input interface{}, params ...interface{}) (interface{}, error)
- func ReadFile(filename string) string
- func ReadJSON(filename string) map[string]interface{}
- func RunCommand(item models.Item)
- func WriteFileWithCustomSeparator(filePath string, data []byte, perm os.FileMode) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToCamelCase ¶
func ConvertToCamelCase(input interface{}, params ...interface{}) (interface{}, error)
ConvertToCamelCase converts a string to CamelCase
func ConvertToKebabCase ¶
func ConvertToKebabCase(input interface{}, params ...interface{}) (interface{}, error)
ConvertToKebabCase converts a string to kebab-case
func ConvertToPascaleCase ¶
func ConvertToPascaleCase(input interface{}, params ...interface{}) (interface{}, error)
ConvertToPascalCase converts a string to PascalCase
func ConvertToSnakeCase ¶
func ConvertToSnakeCase(input interface{}, params ...interface{}) (interface{}, error)
ConvertToSnakeCase converts a string to snake_case
func DownloadFile ¶ added in v0.0.2
func Generate16bitSecret ¶
func Generate16bitSecret(input interface{}, params ...interface{}) (interface{}, error)
GenerateSecret generates a 16-byte hexadecimal secret
func Generate64BitSecret ¶
func Generate64BitSecret(input interface{}, params ...interface{}) (interface{}, error)
Generate64BitSecret generates an 8-byte (64-bit) hexadecimal secret
func GenerateFile ¶ added in v0.0.2
func GenerateUUID ¶
func GenerateUUID(input interface{}, params ...interface{}) (interface{}, error)
func JoinPath ¶
func JoinPath(input interface{}, params ...interface{}) (interface{}, error)
JoinPath joins strings into a path using the OS separator
func LowerFirst ¶
func LowerFirst(input interface{}, params ...interface{}) (interface{}, error)
LowerFirst converts the first letter of a string to lower case
func ReadEnvValue ¶
func ReadEnvValue(input interface{}, params ...interface{}) (interface{}, error)
ReadEnvValue reads a value from a specified .env file
func RunCommand ¶ added in v0.0.2
Types ¶
Click to show internal directories.
Click to hide internal directories.