internal

package
v0.0.0-...-2985b46 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx *cli.Context) error

func Insert

func Insert(ctx *cli.Context) error

func SortInsertions

func SortInsertions(tables []Table)

Types

type FormatedInput

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

type InsertContext

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

Data to be passed to a Insertable

type Insertable

type Insertable interface {
	// contains filtered or unexported methods
}

type Inserter

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

func (*Inserter) CreateHeader

func (i *Inserter) CreateHeader() (map[string]int, error)

func (*Inserter) Insert

func (i *Inserter) Insert(numberOfLines int) error

type Item

type Item struct {
	Insertions []map[string]string `yaml:"insertions"`
}

type Mapping

type Mapping = map[string]Item

func ReadMapping

func ReadMapping(content []byte) (*Mapping, error)

func ReadMappingFromFile

func ReadMappingFromFile(path string) (*Mapping, error)

type Parser

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

func NewParser

func NewParser(mapping Mapping) *Parser

type RegularInsertion

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

type Table

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

type TableReference

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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