file

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(filePath string) bool

func Exists

func Exists(filePath string) bool

func ExpandPath

func ExpandPath(filePath string) (string, error)

func GetFileSystem

func GetFileSystem() afero.Fs

Types

type FileWriter

type FileWriter struct {
	Fs afero.Fs
	// contains filtered or unexported fields
}

func NewFileWriter

func NewFileWriter() *FileWriter

func (*FileWriter) P

func (f *FileWriter) P(fmtStr string, args ...interface{})

func (*FileWriter) Save

func (f *FileWriter) Save(path string) error

func (*FileWriter) Write

func (f *FileWriter) Write(bytes []byte) (int, error)

Jump to

Keyboard shortcuts

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