feat(初始项目): 初始项目

This commit is contained in:
2021-03-26 19:21:06 +08:00
parent ef16e03909
commit c7331dc186
6 changed files with 62 additions and 0 deletions

12
setft.go Normal file
View File

@@ -0,0 +1,12 @@
// +build !windows
package setft
import (
"os"
"time"
)
func SetFileTime(path string, atime, ctime, mtime time.Time) (err error) {
return os.Chtimes(path, atime, mtime)
}