utils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION           = "v1.3.1"                                                  // 版本号
	DefaultStaticPort = "5001"                                                    // 静态服务端口
	DocsTemplateBase  = "https://cdn.jsdelivr.net/gh/NucoTech/nuco-docsify@"      // 模板CDN地址
	DocsTemplateRepo  = "https://github.com/NucoTech/nuco-docsify/tree/main/docs" // 模板仓库地址
	NewVersionCDN     = "https://download.fastgit.org/NucoTech/nuco-backend-cli/releases/download/"
)

常量信息

Variables

This section is empty.

Functions

func BlockDownloadFile

func BlockDownloadFile(client http.Client, fileUrl, dir, filename string)

阻塞下载文件

func DownloadFile

func DownloadFile(client http.Client, fileUrl, dir, filename string, wg *sync.WaitGroup)

下载文件

func GetLineInput

func GetLineInput(toVar *string) (int, error)

func IsExist

func IsExist(path string) bool

判断文件或者目录是否存在

func RunGitAddCommand

func RunGitAddCommand()

func RunGitCommitCommand

func RunGitCommitCommand(commit string)

func WriteFile

func WriteFile(path, content string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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