format

package
v0.0.0-...-907a525 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Open()
	Show(market exchange.Market)
	Close()
}

Formatter displays the markets to the user

func NewAlert

func NewAlert() Formatter

func NewJSON

func NewJSON() Formatter

NewJSON displays the market as json format

func NewMulti

func NewMulti(f ...Formatter) Formatter

func NewPolybar

func NewPolybar(config PolybarConfig) Formatter

func NewServer

func NewServer() Formatter

NewServer displays the market as json format

func NewTemplate

func NewTemplate(format string) Formatter

NewTemplate displays the market as the specified golang template format

type PolybarConfig

type PolybarConfig struct {
	Sort string
	Icon bool
}

Jump to

Keyboard shortcuts

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