ui

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFlushInterval = 200 * time.Millisecond
	DefaultWidth         = 80
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleUI

type SimpleUI struct {
	// contains filtered or unexported fields
}

func NewSimpleUI

func NewSimpleUI() *SimpleUI

func (*SimpleUI) AddSlot

func (s *SimpleUI) AddSlot(label string)

func (*SimpleUI) HRule

func (s *SimpleUI) HRule()

func (*SimpleUI) Log

func (s *SimpleUI) Log(msg ...interface{})

func (*SimpleUI) Logf

func (s *SimpleUI) Logf(format string, args ...interface{})

func (*SimpleUI) SetSlot

func (s *SimpleUI) SetSlot(label, buf string)

func (*SimpleUI) SetStatus

func (s *SimpleUI) SetStatus(status ...interface{})

type TermUI

type TermUI struct {
	// contains filtered or unexported fields
}

func NewTermUI

func NewTermUI() *TermUI

func (*TermUI) AddSlot

func (u *TermUI) AddSlot(label string)

func (*TermUI) Flush

func (u *TermUI) Flush()

func (*TermUI) HRule

func (u *TermUI) HRule()

func (*TermUI) Log

func (u *TermUI) Log(msg ...interface{})

func (*TermUI) Logf

func (u *TermUI) Logf(format string, args ...interface{})

func (*TermUI) SetSlot

func (u *TermUI) SetSlot(label, buf string)

func (*TermUI) SetStatus

func (u *TermUI) SetStatus(status ...interface{})

func (*TermUI) SetStatusAndLog

func (u *TermUI) SetStatusAndLog(status ...interface{})

type UI

type UI interface {
	SetStatus(status ...interface{})
	Log(msg ...interface{})
	Logf(format string, args ...interface{})
	HRule()

	AddSlot(label string)
	SetSlot(label, buf string)
}

Jump to

Keyboard shortcuts

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