init commit.

This commit is contained in:
2025-03-15 11:19:19 +08:00
commit e2856f1074
8 changed files with 165 additions and 0 deletions

23
main.go Normal file
View 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)
}