file

package
v0.0.0-...-a4de9da Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

func CreateExcel

func CreateExcel(Data *Excel) (err error)

func GetFile

func GetFile(folder string) (file []byte, err error)

func GetFiles

func GetFiles(folder string, list *Files) (err error)

func PathExists

func PathExists(path string) (bool, error)

func WriteFile

func WriteFile(filename string, data []byte, perm os.FileMode) error

Types

type Excel

type Excel struct {
	Path string
	File *excelize.File
	Data []*ExcelSheet
}

type ExcelCell

type ExcelCell struct {
	Name  string
	Value interface{}
}

type ExcelSheet

type ExcelSheet struct {
	Name  string
	Cells []*ExcelCell
}

type File

type File struct {
	Folder string
	Info   fs.FileInfo
}

type Files

type Files struct {
	List []*File
}

Jump to

Keyboard shortcuts

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