csv

package
v0.0.0-...-eca9bc6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderedBy

func OrderedBy(less ...lessFunc) *multiSorter

Types

type CSVAdapter

type CSVAdapter struct {
	Files map[string]*FileDetails
}

func NewAdapter

func NewAdapter(filedetails *FileDetails) *CSVAdapter

func (*CSVAdapter) ConvertToJSON

func (a *CSVAdapter) ConvertToJSON(data [][]string) []byte

func (*CSVAdapter) Get

func (a *CSVAdapter) Get(name string) (*FileDetails, error)

func (*CSVAdapter) Read

func (a *CSVAdapter) Read(metadata *models.AdapterMetadata) ([]byte, error)

func (*CSVAdapter) ReadAll

func (a *CSVAdapter) ReadAll(metadata *models.AdapterMetadata) ([]interface{}, error)

type FileDetails

type FileDetails struct {
	Name string
	Size float32
	Path string
}

Jump to

Keyboard shortcuts

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