card

package
v0.0.0-...-43d77ea Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card interface {
	SetCardNo(string)
	SetPin(string)
	Print() error
	PrintErr(error)
}

Card is the interface of a card instance

func NewCardJSON

func NewCardJSON(client httpClient, output io.Writer) Card

NewCardJSON creates instance that outputs result as JSON format

func NewCardTable

func NewCardTable(client httpClient, output io.Writer, tablewriter *tablewriter.Table) Card

NewCardTable creates instance that outputs result as a table

Jump to

Keyboard shortcuts

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