filebuilder

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

README

intgFileBuilder

Build Status Quality Gate Status Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	ReadAllSupplierDirs(dir string) *[]SupplierDir
	ReadSourceFile(file string, clean bool) [][]string
	SaveCartFile(file CartCsvFile) bool
}

Builder FileBuilder

type CartCsvFile

type CartCsvFile struct {
	SupplierDir string
	FileName    string
	Content     [][]string
}

CartCsvFile CartCsvFile

type CsvFileBuilder

type CsvFileBuilder struct {
	OutputDir string
}

CsvFileBuilder CsvFileBuilder

func (*CsvFileBuilder) ReadAllSupplierDirs

func (b *CsvFileBuilder) ReadAllSupplierDirs(dir string) *[]SupplierDir

ReadAllSupplierDirs ReadAllSupplierDirs

func (*CsvFileBuilder) ReadSourceFile

func (b *CsvFileBuilder) ReadSourceFile(file string, clean bool) [][]string

ReadSourceFile ReadSourceFile

func (*CsvFileBuilder) SaveCartFile

func (b *CsvFileBuilder) SaveCartFile(file CartCsvFile) bool

SaveCartFile SaveCartFile

type Sourcefile

type Sourcefile struct {
	Name    string
	Content [][]string
}

Sourcefile Sourcefile

type SupplierDir

type SupplierDir struct {
	Name  string
	Files []SupplierFile
}

SupplierDir SupplierDir

type SupplierFile

type SupplierFile struct {
	Name     string
	FullName string
}

SupplierFile SupplierFile

Jump to

Keyboard shortcuts

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