utils

package
v0.0.0-...-6b2b62e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package utils provides the utils to the program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExist

func DirExist(path string) bool

func EnsureDir

func EnsureDir(dir string) error

func FileExist

func FileExist(path string) bool

FileExist check if file is exist

func GetRandomStr

func GetRandomStr(n int) string

func IsDirEmpty

func IsDirEmpty(name string) (bool, error)

Is DirEmpty check if dir is empty

func Unzip

func Unzip(zipContent []byte, dstPath string) error

func ZipDir

func ZipDir(dir string) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis
Package cli provides cli for flag.
Package cli provides cli for flag.
Package options provides the options for the program.
Package options provides the options for the program.

Jump to

Keyboard shortcuts

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