Documentation
¶
Index ¶
Constants ¶
View Source
const (
LabelSeparator = "."
)
View Source
const ( // An file is a string which starts with a letter or number and is followed by // letters, numbers, underscores or hyphens and punkts. If needs to be at least // 2 characters long. If cannot end with a punkt, underscore or hyphen. ReFilename = `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*[a-zA-Z0-9]` )
View Source
const ( // An identifier is a string which starts with a letter and is followed by // letters, numbers, underscores or hyphens. It must be between 1 and 32 characters ReIdentifier = `[a-zA-Z][a-zA-Z0-9_\-]{0,31}` )
Variables ¶
This section is empty.
Functions ¶
func IsFilename ¶ added in v1.4.2
Return true if the string is a valid filename
func IsIdentifier ¶
Return true if the string is a valid identifier
Types ¶
Click to show internal directories.
Click to hide internal directories.