Documentation
¶
Index ¶
- func AtomicWrite(path string, data []byte, perm os.FileMode) error
- func EnsureDir(path string) error
- func IsDir(path string) bool
- func MkdirAll(path string, perm os.FileMode) error
- func OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)
- func PathExists(path string) bool
- func ReadFile(path string) ([]byte, error)
- func ReadYAMLFile(path string, v interface{}) error
- func WriteFile(path string, data []byte, perm os.FileMode) error
- func WriteYAMLFile(path string, v interface{}, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWrite ¶
AtomicWrite writes data to a file atomically using a temp file + rename This ensures the file is either fully written or not written at all
func MkdirAll ¶ added in v0.6.1
MkdirAll creates a project-scoped directory tree. Repository directories are intentionally traversable by the owning user and normal development tools.
func OpenFile ¶ added in v0.6.1
OpenFile opens a project-scoped file path with caller-selected flags.
func ReadFile ¶ added in v0.6.1
ReadFile reads a project-scoped file path. Callers construct these paths from repository configuration, detected package manifests, or temporary files.
func ReadYAMLFile ¶
ReadYAMLFile reads and unmarshals a YAML file into the provided interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.