fileTool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectEncoding

func DetectEncoding(data []byte) (string, error)

func ExecSqlFile

func ExecSqlFile(reader io.Reader, db *gorm.DB) error

func GetFileSuffix

func GetFileSuffix(filename string) string

func GetUTF8Reader

func GetUTF8Reader(reader io.Reader, checkBytes []byte) (io.Reader, error)

func IteratorsHandleCSVReader

func IteratorsHandleCSVReader(reader io.Reader) (func(yield func([]string) bool), error)

func IteratorsHandleEXCELReader

func IteratorsHandleEXCELReader(reader io.Reader) (func(yield func([]string) bool), error)

迭代器处理EXCEL 会跳过空行

func NewRowReader

func NewRowReader(reader io.Reader, suffix string) (func(yield func([]string) bool), error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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