Documentation ¶
Index ¶
- func Create(file string) (*os.File, error)
- func EqualLengthPrint(str1 string, str2 string, maxLen int)
- func FileExists(file string) bool
- func FileExistsOrCreate(dir string) error
- func GetDirs(dirPath string) (dirs []string, err error)
- func GetGiteeProjectTag(owner, repo string) (string, error)
- func GetModuleName() (string, error)
- func GetPbAlias(pbPath string) string
- func GetPbFiles(dirPath string) ([]string, error)
- func GetProtoFiles(dirPath string) ([]string, error)
- func GoFormat(file string) error
- func GoInstallCmd(arg string) ([]byte, error)
- func OpenOrCreate(file string) (*os.File, error)
- func PrintC(l, i int)
- func PrintError(err error)
- func PrintSuccess(input string)
- type GiteeTagResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create Creates or truncates the named file,if the file path contains directories, it will make them first.
func EqualLengthPrint ¶ added in v1.0.3
EqualLengthPrint 等长打印:青色
func GetGiteeProjectTag ¶
func GetProtoFiles ¶
GetProtoFiles 获取所有proto文件路径
func OpenOrCreate ¶
OpenOrCreate opens a file if it exists, otherwise creates it. If the file path contains directories, it will make them first.
func PrintError ¶
func PrintError(err error)
func PrintSuccess ¶
func PrintSuccess(input string)
Types ¶
type GiteeTagResp ¶
Click to show internal directories.
Click to hide internal directories.