Skip to content
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

Commit 5be3f6a

Browse files
authored
fix(fsx): define missing O_APPEND constant (#18)
I forgot to export `O_APPEND` 🤦
1 parent f9f284f commit 5be3f6a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

fsx/fsx.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const (
3131
O_RDWR = fsmodel.O_RDWR
3232
O_TRUNC = fsmodel.O_TRUNC
3333
O_WRONLY = fsmodel.O_WRONLY
34+
O_APPEND = fsmodel.O_APPEND
3435
)
3536

3637
// IsNotExist combines the [os.ErrNotExist] check with

internal/fsmodel/fsmodel.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const (
1818
O_RDWR = os.O_RDWR
1919
O_TRUNC = os.O_TRUNC
2020
O_WRONLY = os.O_WRONLY
21+
O_APPEND = os.O_APPEND
2122
)
2223

2324
// File represents a file in the filesystem.

0 commit comments

Comments
 (0)