csv

package
v0.0.0-...-fff90db Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVIdentifierRepository

type CSVIdentifierRepository struct {
	// contains filtered or unexported fields
}

CSVIdentifierRepository represents a repository capable of storing identifiers as comma-separated values.

func NewCSVIdentifierRepository

func NewCSVIdentifierRepository(file *os.File) *CSVIdentifierRepository

NewCSVIdentifierRepository creates a new CSVIdentifierRepository to store identifiers as comma-separated values on the referenced file.

func (*CSVIdentifierRepository) Add

Add creates a new row for an identifier, using comma-separated values. The columns added are: * id * package * file * position * name * type * splits * expansions * error

func (*CSVIdentifierRepository) FindAllByProject

func (r *CSVIdentifierRepository) FindAllByProject(ctx context.Context, projectRef string) ([]entity.Identifier, error)

FindAllByProject finds all the identifiers that match the given project reference. It's unimplemented on the current repository.

Jump to

Keyboard shortcuts

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