Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayText ¶
DisplayText writes tabbed content to the passed in io.Writer while potentially adding or removing headers.
Types ¶
type Categories ¶
type Categories []*gocancel.Category
func (Categories) ColMap ¶
func (c Categories) ColMap() map[string]string
func (Categories) Cols ¶
func (c Categories) Cols() []string
func (Categories) KV ¶
func (c Categories) KV() []map[string]interface{}
type Displayable ¶
type Displayable interface { Cols() []string ColMap() map[string]string KV() []map[string]interface{} JSON(io.Writer) error }
Displayable is a displayable entity. These are used for printing results.
type Displayer ¶
type Displayer struct { OutputType string ColumnList string NoHeaders bool Item Displayable Out io.Writer }
Displayer has the display options, the item to display, and where to display to.
type Organizations ¶
type Organizations []*gocancel.Organization
func (Organizations) ColMap ¶
func (o Organizations) ColMap() map[string]string
func (Organizations) Cols ¶
func (o Organizations) Cols() []string
func (Organizations) KV ¶
func (o Organizations) KV() []map[string]interface{}
Click to show internal directories.
Click to hide internal directories.