display

package
v0.0.0-...-a822d70 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row struct {
	ItemName string
	Quantity int
	Place    int
	Price    float64
	Diff     float64
	Bests    []float64
}

type Table

type Table struct {
	OrderType string
	Rows      []Row
}

func NewTable

func NewTable(username string, orders []client.Order, orderType string) Table

func (Table) Diff

func (t Table) Diff(otherTable *Table) (result []string)

Suppose we have ll as new, other as old

func (Table) Sort

func (t Table) Sort(sorting string)

func (Table) String

func (t Table) String() string

type TableContext

type TableContext struct {
	Username    string
	Sells       bool
	Buys        bool
	LinesOfLogs int
	Sorting     string
	TicksSecond int
	LastSells   *Table
	LastBuys    *Table
	Logs        []string
}

func (*TableContext) PrepareTable

func (tc *TableContext) PrepareTable() string

func (*TableContext) Run

func (tc *TableContext) Run()

Jump to

Keyboard shortcuts

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