fs

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadFileFunc

type ReadFileFunc func(filename string) ([]byte, error)

ReadFileFunc defines a function type for reading the contents of a file. It takes a filename as input and returns the file's contents as a byte slice, along with an error if the operation fails.

type StatFunc

type StatFunc func(path string) (os.FileInfo, error)

StatFunc defines a function type that takes a file path as input and returns the file's os.FileInfo and an error if the operation fails. It is typically used to abstract file stat operations for testing or customization.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL