Documentation
¶
Index ¶
- Variables
- func CreateFile(pathToFile string) (afero.File, error)
- func FileExists(pathToFile string) (fs bool, mem bool, err error)
- func ReadAll(reader io.Reader) ([]byte, error)
- func ReadFile(Fs afero.Fs, pathToFile string) ([]byte, error)
- func ReadFsFile(pathToFile string) ([]byte, error)
- func ReadMemFile(pathToFile string) ([]byte, error)
- func ReadProperties(pathToFile string) (out map[string]string, err error)
- func ReadRoFile(pathToFile string) ([]byte, error)
- func WriteFile(fs afero.Fs, pathToFile string, data []byte) error
- func WriteFsFile(pathToFile string, data []byte) error
- func WriteMemFile(pathToFile string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Fs = afero.NewOsFs() Mem = afero.NewMemMapFs() FsRo = afero.NewReadOnlyFs(Fs) )
Functions ¶
func ReadFsFile ¶
func ReadMemFile ¶
func ReadRoFile ¶
func WriteFsFile ¶
func WriteMemFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.