Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotEmptyDir = errors.New("not empty directory for initialization") ErrEmptyProjectName = errors.New("the project name must not be empty") ErrProjectNameTooLong = errors.New("the project name must be less than 100 characters") ErrProjectNameInvalid = errors.New("the project name can only contain alphanumeric, hyphens, underscores, and periods") )
Functions ¶
func GetDirAndName ¶
GetDirAndName returns the rooted path and the last element of the current working directory for the initialized demo project.
func ValidateProjectDir ¶
ValidateProjectDir ensures the project directory for initialization is valid.
func ValidateProjectName ¶
ValidateProjectName ensures a project name is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.