utils

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGOMOD

func GetGOMOD() string

GetGOMOD .

func GetHicliHomePath

func GetHicliHomePath() string

GetHicliHomePath 获取用户home目录

func GetProjectBasePath

func GetProjectBasePath(projectPath string) string

GetProjectBasePath 如果开启了gomod 则返回module名 未使用gomod则判断path中是否存在$GOPATH,存在则返回$GOPATH下面的名字 默认返回空

func GetProjectPath

func GetProjectPath(root string) string

GetProjectPath 获取项目路径

func GetWebSrcPath

func GetWebSrcPath(projectPath string) (string, string)

GetWebSrcPath 获取web项目src目录 判断路径下是否有src目录且src下有App.vue,有则返回src目录和项目目录 默认返回空

func PathExists

func PathExists(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL