utils

package
v0.0.0-...-976313a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalFormat = "2006-01-02 15:04:05"

Functions

func Exec

func Exec(command string, arg ...string) (output []byte, err error)

Exec execute command with args

func FileExist

func FileExist(path string) (ok bool)

FileExist return file whether exist

func MustPathExist

func MustPathExist(path string) (ok bool)

MustPathExist make sure path is exist

func PathExist

func PathExist(path string, autoCreate bool) bool

PathExist path whether exist, if not and authCreate is bool then return create result

func RemoveAll

func RemoveAll(path string) error

RemoveAll remove path

func TimeNowString

func TimeNowString() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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