Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTmpFolder = "generated"
Variables ¶
This section is empty.
Functions ¶
func Permission0600 ¶
func Permission0600(op *FileOptions)
func PersistentFile ¶
func PersistentFile(op *FileOptions)
Types ¶
type FileOptions ¶
type FileOptionsFunc ¶
type FileOptionsFunc func(op *FileOptions)
type FileWriter ¶
type FileWriter interface { Write(fileName string, content []byte, f ...FileOptionsFunc) (path string, err error) WithDir(dir string) (FileWriter, error) CleanUp() CleanUpTemp() Dir() string TempDir() string Create(name string, f ...FileOptionsFunc) (_ io.WriteCloser, path string, _ error) }
func NewWriter ¶
func NewWriter(dir string) (FileWriter, error)
Click to show internal directories.
Click to hide internal directories.