ioTools

package
v0.0.3-dev Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Captcha1

func Captcha1() (int, error)

生成6位随机验证码(数字)Captcha1(生成6位ID)

func Capthca2

func Capthca2() string

生成16位随机ID(字母)

func FileReadAll

func FileReadAll(filename string) string

func GetAllFile

func GetAllFile(pathname string, s []string) ([]string, error)

func GetFileDir

func GetFileDir(filePath string) string

func GetOutputContinually

func GetOutputContinually(name string, args ...string) <-chan struct{}

不断输出到stdout, 直到结束

<-GetOutputContinually("tree")

func GetOutputContinually2

func GetOutputContinually2(name string, args ...string)

不断输出到stdout, 直到结束(支持交互)

func GetOutputDirectly

func GetOutputDirectly(name string, args ...string) (output []byte)

执行外部命令, 并获取输出

func IsStrAInStrB

func IsStrAInStrB(a string, b 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