encoding

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 Convert

func Convert(ID string) string

func ConvertCommands

func ConvertCommands(ID string) string

func IsUnsafeCommandName

func IsUnsafeCommandName(unsafeCommandName string) bool

func IsUnsafeName

func IsUnsafeName(unsafeName string) bool

func IsUnsafeUpperName

func IsUnsafeUpperName(unsafeName string) bool

func SafeConcatGenerateName

func SafeConcatGenerateName(name ...string) string

func SafeConcatName

func SafeConcatName(name ...string) string

func SafeConcatNameMax

func SafeConcatNameMax(name []string, max int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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