files

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference(leftFile, rightFile, outputFile string) error

Difference compares two files and writes the difference to a third file. The leftInput and rightInput are the files to compare, and the output is the file to write the difference to.

func ReadAllLines

func ReadAllLines(fileName string) ([]string, error)

ReadAllLines reads all lines from a file and returns them as a map.

func ReadAllLinesAsMap

func ReadAllLinesAsMap(fileName string) (map[string]interface{}, error)

ReadAllLinesAsMap reads all lines from a file and returns them as a map.

func ReadCsv

func ReadCsv(filename string, separator rune, lazyQuotes bool) ([]map[string]string, error)

func SaveAllLines

func SaveAllLines(fileName string, lines []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