utils

package
v0.0.0-...-29c2746 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListDirs

func ListDirs(dirname string, contains string, deep int) ([]string, error)

ListDirs 列出指定目录的文件夹,需要包含 contains,比如 .git

Types

type Bar

type Bar struct {
	// contains filtered or unexported fields
}

Bar 进度条

func NewBar

func NewBar(total int) *Bar

NewBar 创建一个进度条

func (*Bar) Add

func (bar *Bar) Add(ext ...string)

Add 完成一个进度

func (*Bar) Run

func (bar *Bar) Run()

Run 执行进度条

func (*Bar) WaitClose

func (bar *Bar) WaitClose()

WaitClose 等待进度条输出

Jump to

Keyboard shortcuts

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