package
1.1.7
Repository: https://github.com/melonwool/go-zero.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package name provides methods to verify naming style and format naming style See the method IsNamingValid, FormatFilename.
No description provided by the author

# Functions

Clean deletes all templates and removes the parent directory.
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 maybe return empty string if there is no go.mod file in project.
FindProjectPath returns the parent directory where has file go.mod in project.
GetGoctlHome returns the path value of the goctl home where Join $HOME with .goctl.
GetHead returns a code head string with source filename.
GetTemplateDir returns the category path value in GoctlHome where could get it by GetGoctlHome.
Index returns the index where the item equal,it will return -1 if mismatched.
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.
PathFromGoSrc returns the path without slash where has been trim the prefix $GOPATH.
RemoveIfExist deletes the specified file if it is exists.
RemoveOrQuit deletes the specified file if read a permit command from stdin.
Title returns a string value with s[0] which has been convert into upper case that there are not empty input text.
Untitle returns a string value with s[0] which has been convert into lower case that there are not empty input text.
With returns a instance of DefaultTemplate.

# Constants

NL defines a new line.

# Structs

DefaultTemplate is a tool to provides the text/template operations.