const os.O_CREATE
15 uses
os (current package)
file.go#L78: O_CREATE int = syscall.O_CREAT // create a new file if none exists.
file.go#L320: return OpenFile(name, O_RDWR|O_CREATE|O_TRUNC, 0666)
file.go#L696: f, err := OpenFile(name, O_WRONLY|O_CREATE|O_TRUNC, perm)
file_unix.go#L207: if !supportsCreateWithStickyBit && flag&O_CREATE != 0 && perm&ModeSticky != 0 {
tempfile.go#L41: f, err := OpenFile(name, O_RDWR|O_CREATE|O_EXCL, 0600)
github.com/go-git/go-billy/v5/osfs
os.go#L28: return fs.OpenFile(filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, defaultCreateMode)
os.go#L32: if flag&os.O_CREATE != 0 {
github.com/go-git/go-billy/v5/util
util.go#L100: f, err := fs.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
util.go#L157: f, err = fs.OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0600)
github.com/go-git/go-git/v5
worktree.go#L539: to, err := w.Filesystem.OpenFile(f.Name, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, mode.Perm())
worktree.go#L571: to, err := w.Filesystem.OpenFile(f.Name, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, mode.Perm())
github.com/go-git/go-git/v5/storage/filesystem/dotgit
dotgit.go#L764: openFlags |= os.O_CREATE
dotgit_setref.go#L23: mode := os.O_RDWR | os.O_CREATE
golang.org/x/mod/zip
zip.go#L649: w, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0444)
io/ioutil
tempfile.go#L64: f, err = os.OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0600)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |