processor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Passthru

type Passthru string

func (Passthru) String

func (p Passthru) String() string

type Play

type Play struct {
	Name string
	Tags string
}

func (*Play) Description

func (pl *Play) Description() string

func (*Play) String

func (pl *Play) String() string

type Result

type Result struct {
	Rows  []*Row
	Stats *Stats
}

func ProcessLines

func ProcessLines(scanner *bufio.Scanner, widther cmn.Widther) (*Result, error)

type Row

type Row struct {
	Indent int          // TODO: ATM `Indent` is a deadweight.
	Data   fmt.Stringer //       Drop it or implement indent detection
}

type Stats

type Stats struct {
	Widther                      cmn.Widther
	LongestPlayDescription       string
	LongestPlayDescriptionLength int
	LongestPlayTags              string
	LongestPlayTagsLength        int
	LongestTaskBlock             string
	LongestTaskBlockLength       int
	LongestTaskName              string
	LongestTaskNameLength        int
	LongestTaskDescription       string
	LongestTaskDescriptionLength int
	LongestTaskTags              string
	LongestTaskTagsLength        int
}

func (*Stats) Lines

func (st *Stats) Lines() []string

func (*Stats) Print

func (st *Stats) Print()

func (*Stats) PrintTo

func (st *Stats) PrintTo(w io.Writer)

type Task

type Task struct {
	Block string
	Name  string
	Tags  string
}

func (*Task) Description

func (t *Task) Description() string

func (*Task) String

func (t *Task) String() string

type Tasks

type Tasks struct {
	PlayNumber int
	Tasks      []*Task
}

func (*Tasks) Add

func (ts *Tasks) Add(t *Task)

func (*Tasks) String

func (ts *Tasks) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳