utils

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 11 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 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 SecurityCheck

func SecurityCheck(language, nt3CheckType string) (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