Finalizing for 1.2.0

This commit is contained in:
bts committed 2022-01-16 06:55:29 -05:00
1 parent 39e0a1fd43
commit d98363c0d7
22 files changed
+1106 -110

No files matched your search

+4 -1
View File
@@ -6,13 +6,16 @@ import (
// testOpen attempts to open a file for writing to test for suitability as a LogFile path.
func testOpen(path string) (success bool, err error) {
var f *os.File
// Example #2, https://golang.org/pkg/os/#OpenFile
if f, err = os.OpenFile(path, appendFlags, logPerm); err != nil {
return
}
defer f.Close()
if err = f.Close(); err != nil {
return
}
success = true