diff --git a/file.go b/file.go index 7f7dd86..73a33f7 100644 --- a/file.go +++ b/file.go @@ -114,7 +114,7 @@ func (f *fileOperate) SetOpenFlag(flagList ...int) *fileOperate { func (f *fileOperate) SetClearHasContentForWrite() *fileOperate { f.clearHasContent = true f.openFlag = f.openFlag | os.O_TRUNC - return nil + return f } // Create 创建文件