Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrProjectRootNotFound1 = errutil.NewFactory("project root not found from: %q")
)
errors
Functions ¶
func IsExist ¶
IsExist return true if path exist
https://gist.github.com/mattes/d13e273314c3b3ade33f
if _, err := os.Stat("/path/to/whatever"); err == nil { // path/to/whatever exists }
func IsNotExist ¶
IsNotExist return true if path not exist
https://gist.github.com/mattes/d13e273314c3b3ade33f
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { // path/to/whatever does not exist }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.