Documentation ¶
Index ¶
- func Create(file string) (*os.File, error)
- func FileExists(file string) bool
- func FileExistsOrCreate(dir string) error
- func GetModule() string
- func GetPbAlias(pbPath string) string
- func GetPbFiles(pbFile string) []string
- func GetProtoFiles(protoFile string) []string
- func GetSwaggerFiles(swaggerFile string) []string
- func GoFormat(file string) error
- func GoInstallCmd(arg string) ([]byte, error)
- func OpenOrCreate(file string) (*os.File, error)
- func PrintC(l, i int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Creates or truncates the named file,if the file path contains directories, it will make them first.
func GetPbFiles ¶
func GetProtoFiles ¶
func GetSwaggerFiles ¶
func GoInstallCmd ¶ added in v1.2.15
GoInstallCmd 初始化必需类库
func OpenOrCreate ¶
OpenOrCreate opens a file if it exists, otherwise creates it. If the file path contains directories, it will make them first.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.