Documentation ¶
Index ¶
- Constants
- func CreateOpen(path string) (*os.File, error)
- func Open(path string) (*os.File, error)
- func Read(path string) ([]byte, error)
- func Write(path string, permissions fs.FileMode, content []byte) error
- func WriteOpen(path string, permissions fs.FileMode, content []byte) (*os.File, error)
- type File
- type FileRunner
- type Files
- type FilterJoin
Constants ¶
View Source
const (
AllReadWrite = os.FileMode(0666)
)
Variables ¶
This section is empty.
Functions ¶
func CreateOpen ¶
CreateOpen creates or opens the named file. If the file already exists, it is opend. If the file does not exist, it is created with mode 0666. If successful, methods on the returned File can be used for I/O; the associated file descriptor has mode O_RDWR.
Types ¶
type FileRunner ¶
type FileRunner struct {
// contains filtered or unexported fields
}
func New ¶
func New(root string) FileRunner
func (FileRunner) Exclude ¶
func (fr FileRunner) Exclude(joinBy FilterJoin, filters []string) FileRunner
func (FileRunner) Execute ¶
func (fr FileRunner) Execute() (files *Files, err error)
func (FileRunner) Include ¶
func (fr FileRunner) Include(joinBy FilterJoin, filters []string) FileRunner
func (FileRunner) ReadContent ¶
func (fr FileRunner) ReadContent() FileRunner
Click to show internal directories.
Click to hide internal directories.