file

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffJsonFiles added in v1.0.1

func DiffJsonFiles(allPath, setPath string) ([]string, error)

json format {"data": ["a","b"]}

func DiffSlices added in v1.0.1

func DiffSlices(all, set []string) []string

get not exists of all in set TODO replace in place

func ParseJsonFile

func ParseJsonFile(path string, out interface{}) error

func ReadCsvRecordsFromFile added in v1.0.2

func ReadCsvRecordsFromFile(filename string) ([][]string, error)

func ReadExcelRecords added in v1.0.2

func ReadExcelRecords(fileName, sheetName string) ([][]string, error)

func SingleColumn2Table added in v1.0.2

func SingleColumn2Table(records [][]string, idx int) []string

func Slice2Records

func Slice2Records(cells []string, batchSize int) [][]string

func WriteRecordsToFile added in v1.0.2

func WriteRecordsToFile(filename string, records [][]string, header ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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