github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/daemon/logger/loggerutils/file_unix.go (about) 1 //go:build !windows 2 // +build !windows 3 4 package loggerutils 5 6 import "os" 7 8 func openFile(name string, flag int, perm os.FileMode) (*os.File, error) { 9 return os.OpenFile(name, flag, perm) 10 } 11 12 func open(name string) (*os.File, error) { 13 return os.Open(name) 14 } 15 16 func unlink(name string) error { 17 return os.Remove(name) 18 }