Documentation ¶
Index ¶
- type Cli
- type CsvWriter
- type Formatter
- type In
- type Out
- func (o *Out) Errorf(format string, a ...any)
- func (o *Out) FailAndExit(err error)
- func (o *Out) FailAndExitf(format string, a ...any)
- func (o *Out) NewCsvWriter(comma rune) *CsvWriter
- func (o *Out) NewTabwriter() *TabWriter
- func (o *Out) Printf(format string, a ...any)
- func (o *Out) Println(a ...any)
- type TabWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface { FormatInt(i int) string FormatPercentage(p float64) string FormatTime(t time.Time) string // FormatDurationms formats a duration as milliseconds FormatDurationms(d time.Duration) string // FormatDurations formats a duration as seconds FormatDurations(d time.Duration) string }
func DefaultFormatter ¶
func DefaultFormatter() Formatter
type Out ¶
type Out struct {
// contains filtered or unexported fields
}
func (*Out) FailAndExit ¶
func (*Out) FailAndExitf ¶
func (*Out) NewCsvWriter ¶
func (*Out) NewTabwriter ¶
Click to show internal directories.
Click to hide internal directories.