file

package
v0.0.0-...-cb0630e Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVHandler

type CSVHandler struct{}

func (*CSVHandler) Read

func (h *CSVHandler) Read(file *os.File) ([]string, []string, []string, error)

func (*CSVHandler) Write

func (h *CSVHandler) Write(file *os.File, headers []string, out [][]string) error

type Handler

type Handler interface {
	Read(file *os.File) ([]string, []string, []string, error)
	Write(file *os.File, headers []string, out [][]string) error
}

func GetHandler

func GetHandler(fileType string) Handler

func NewCSVHandler

func NewCSVHandler() Handler

Jump to

Keyboard shortcuts

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