Documentation ¶
Index ¶
Constants ¶
View Source
const ( // file modes DefaultDirFileMode = 0750 DefaultFileMode = 0644 DefaultExecFileMode = 0755 DefaultFileFlags = os.O_WRONLY | os.O_CREATE )
Variables ¶
This section is empty.
Functions ¶
func DotPath ¶ added in v0.14.0
DotPath appends a current working directory dot, ex. "./" in Unix, to paths that do not already have one or are not absolute.
func IsClosedError ¶ added in v0.4.0
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter is a io wrapper to write files
func NewFileWriterFS ¶ added in v0.5.0
func NewFileWriterFS(fs afero.Fs) *FileWriter
func (*FileWriter) GetFS ¶ added in v0.5.0
func (fw *FileWriter) GetFS() afero.Fs
func (*FileWriter) WriteCloser ¶
WriteCloser returns a WriteCloser to write to given path
Click to show internal directories.
Click to hide internal directories.