Documentation
¶
Index ¶
- Variables
- func Convert(ID string) string
- func ConvertCommands(ID string) string
- func IsUnsafeCommandName(unsafeCommandName string) bool
- func IsUnsafeName(unsafeName string) bool
- func IsUnsafeUpperName(unsafeName string) bool
- func SafeConcatGenerateName(name ...string) string
- func SafeConcatName(name ...string) string
- func SafeConcatNameMax(name []string, max int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var UnsafeCommandNameRegEx = regexp.MustCompile(`^(([a-z0-9][a-z0-9\-_]*[a-z0-9])|([a-z0-9]))$`)
View Source
var UnsafeNameRegEx = regexp.MustCompile(`^(([a-z0-9][a-z0-9\-]*[a-z0-9])|([a-z0-9]))$`)
View Source
var UnsafeUpperNameRegEx = regexp.MustCompile(`^(([A-Za-z0-9][A-Za-z0-9\-_]*[A-Za-z0-9])|([A-Za-z0-9]))$`)
Functions ¶
func ConvertCommands ¶
func IsUnsafeCommandName ¶
func IsUnsafeName ¶
func IsUnsafeUpperName ¶
func SafeConcatGenerateName ¶
func SafeConcatName ¶
func SafeConcatNameMax ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.