- OS custom internal package for file system interaction - Remove fileManager external dependency - Closer API to Go's native API on the OS - Create directories at startup - Better testability - Move Unsetenv to os interface
17 lines
284 B
Go
17 lines
284 B
Go
package os
|
|
|
|
import (
|
|
nativeos "os"
|
|
)
|
|
|
|
// Constants used for convenience so "os" does not have to be imported
|
|
|
|
//nolint:golint
|
|
const (
|
|
O_CREATE = nativeos.O_CREATE
|
|
O_TRUNC = nativeos.O_TRUNC
|
|
O_WRONLY = nativeos.O_WRONLY
|
|
O_RDONLY = nativeos.O_RDONLY
|
|
O_RDWR = nativeos.O_RDWR
|
|
)
|