file

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtencionFile

func ExtencionFile(filename string) string

* * ExtencionFile * @param filename string * @return string *

func MakeFile

func MakeFile(folder, name, model string, args ...any) (string, error)

* * MakeFile * @param folder, name, model string, args ...any * @return string, error *

func MakeFolder

func MakeFolder(names ...string) (string, error)

* * MakeFolder * @param names ...string * @return string, error *

func Read added in v1.0.12

func Read(filePath string, dest any) error

* * Read * @param filePath string, dest any * @return error *

func ReadFile added in v0.1.4

func ReadFile(path string) (string, error)

* * ReadFile * @param path string * @return string, error *

func RemoveFile

func RemoveFile(path string) (bool, error)

* * RemoveFile * @param path string * @return bool, error *

func WatcherPath

func WatcherPath(root string) error

func Write added in v1.0.12

func Write(filePath string, obj any) error

* * Write * @param filePath string, obj any * @return error *

Types

type FileInfo added in v0.1.4

type FileInfo struct {
	Path  string
	Info  os.FileInfo
	Error error
	IsDir bool
	Exist bool
}

func ExistPath

func ExistPath(path string) FileInfo

* * ExistPath * @param path string * @return bool *

func (*FileInfo) Json added in v0.1.4

func (s *FileInfo) Json() et.Json

Jump to

Keyboard shortcuts

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