utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrepColor

func GrepColor(str string, key string) string

GrepColor colors the keyword section.

func GrepSlice

func GrepSlice(s []string, key string) bool

GrepSlice checks if the keyword is in the slice.

func IsDir

func IsDir(path string) bool

IsDir checks if the path is a directory.

func IsExist

func IsExist(path string) bool

IsExist checks if the path exists.

func LsR

func LsR(dir string) []string

LsR recursively lists the directory.

func Usage

func Usage()

Usage prints usage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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