2025年5月28日

golang 文件锁

摘要: func TryLockFile(filePath string) (bool, *os.File) { file, err := os.OpenFile(filePath, os.O_CREATE|os.O_RDWR, 0644) if err != nil { return false, nil 阅读全文

posted @ 2025-05-28 06:35 running-fly 阅读(17) 评论(0) 推荐(0)

导航