strmangle

package
v3.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: BSD-3-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBAppName

func DBAppName(s string) string

DBAppName converts the app name to a database compatible name, eg: "My-app Name" -> "my_app_name"

func EnvAppName

func EnvAppName(s string) string

EnvAppName converts the app name to an environment variable compatible name, eg: "My-app Name" -> "MY_APP_NAME"

func RandString

func RandString(length int) string

RandString generates a random string of length len using the chars in letterRunes

func SanitizeAppName

func SanitizeAppName(s string) string

SanitizeAppName converts the app name to a github sanitized name, eg: "My_app@Name" -> "My-app-Name"

Types

This section is empty.

Jump to

Keyboard shortcuts

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