ftil

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 8 Imported by: 0

README

ftil

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()

func (FileService) CreateFile

func (file FileService) CreateFile()

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{}, bool)

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