ftil

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirByt

type DirByt struct {
	Value   []byte
	AbsPath string
}

type FileService

type FileService struct {
	Path string
}

func Path

func Path(path string) FileService

func (FileService) CreateDir

func (file FileService) CreateDir() error

func (FileService) CreateFile

func (file FileService) CreateFile() error

func (FileService) IsDir

func (file FileService) IsDir() bool

func (FileService) IsFile

func (file FileService) IsFile() bool

func (FileService) LoadJsonStruct

func (file FileService) LoadJsonStruct(st interface{}) error

func (FileService) ReadDir

func (file FileService) ReadDir() ([]DirByt, error)

func (FileService) ReadDirInfo

func (file FileService) ReadDirInfo() ([]os.FileInfo, error)

func (FileService) ReadDirRec

func (file FileService) ReadDirRec() ([]DirByt, error)

func (FileService) ReadFile

func (file FileService) ReadFile() ([]byte, error)

func (FileService) ReadJsonMap

func (file FileService) ReadJsonMap() (interface{}, error)

func (FileService) ReadString

func (file FileService) ReadString() (string, error)

func (FileService) WriteFileAsString

func (file FileService) WriteFileAsString(value string) error

func (FileService) WriteJson

func (file FileService) WriteJson(data interface{}) error

Jump to

Keyboard shortcuts

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