utils

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureOutput

func CaptureOutput(f func()) string

CaptureOutput 捕获函数输出和错误输出,实时输出,并返回字符串

func CheckChina added in v0.0.33

func CheckChina(enableLogger bool) bool

func PrintAndCapture

func PrintAndCapture(f func(), tempOutput, output string) string

PrintAndCapture 捕获函数输出的同时打印内容

func PrintCenteredTitle

func PrintCenteredTitle(title string, width int)

PrintCenteredTitle 根据指定的宽度打印居中标题

func PrintHead

func PrintHead(language string, width int, ecsVersion string)

PrintHead 根据语言打印头部信息

func ProcessAndUpload added in v0.0.14

func ProcessAndUpload(output string, filePath string, enableUplaod bool)

ProcessAndUpload 创建结果文件并上传文件

func SecurityCheck

func SecurityCheck(language, nt3CheckType string, securtyCheckStatus bool) (string, string, string)

SecurityCheck 执行安全检查

func UploadText

func UploadText(absPath string) (string, error)

UploadText 上传文本内容到指定URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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