init commit.
This commit is contained in:
23
main.go
Normal file
23
main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
_startTime := time.Now()
|
||||
defer func() {
|
||||
fmt.Print("Time cost: ")
|
||||
fmt.Println(time.Now().Sub(_startTime))
|
||||
}()
|
||||
|
||||
p, fi := PathOrPWD()
|
||||
if !fi.IsDir() {
|
||||
fmt.Println(p)
|
||||
fmt.Println("empty-dir: Arg must be dir path.")
|
||||
return
|
||||
}
|
||||
|
||||
emptyDir(p)
|
||||
}
|
Reference in New Issue
Block a user