# Functions
Clean deletes all templates and removes the parent directory.
No description provided by the author
CreateIfNotExist creates a file if it is not exists.
CreateTemplate writes template into file even it is exists.
FileExists returns true if the specified file is exists.
FileNameWithoutExt returns a file name without suffix.
FindGoModPath returns the path in project where has file go.mod, it returns empty string if there is no go.mod file in project.
FindProjectPath returns the parent directory where has file go.mod in project.
GetAutoCompleteHome returns the auto_complete home of goctl.
GetCacheDir returns the cache dit of goctl.
GetDefaultGoctlHome returns the path value of the goctl home where Join $HOME with .goctl.
GetGitHome returns the git home of goctl.
GetGoctlHome returns the path value of the goctl, the default path is ~/.goctl, if the path has been set by calling the RegisterGoctlHome method, the user-defined path refers to.
GetTemplateDir returns the category path value in GoctlHome where could get it by GetGoctlHome.
No description provided by the author
InitTemplates creates template files GoctlHome where could get it by GetGoctlHome.
JoinPackages calls strings.Join and returns.
LoadTemplate gets template content by the specified file.
MkdirIfNotExist makes directories if the input path is not exists.
MustTempDir creates a temporary directory.
PathFromGoSrc returns the path without slash where has been trim the prefix $GOPATH.
ReadLink returns the destination of the named symbolic link recursively.
RegisterGoctlHome register goctl home path.
RemoveIfExist deletes the specified file if it is exists.
RemoveOrQuit deletes the specified file if read a permit command from stdin.
SameFile compares the between path if the same path, it maybe the same path in case case-ignore, such as: /Users/go_zero and /Users/Go_zero, as far as we know, this case maybe appear on macOS and Windows.
# Constants
NL defines a new line.