Documentation ¶
Overview ¶
Package format provides formatting fuctions for different output format types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Converters = make(map[Type]func(opts ...Option) Formatter)
Functions ¶
Types ¶
type CSV ¶
type CSV struct {
// contains filtered or unexported fields
}
func (*CSV) Conversation ¶
type Formatter ¶
type Formatter interface { Conversation(ctx context.Context, w io.Writer, u []slack.User, conv *types.Conversation) error Channels(ctx context.Context, w io.Writer, u []slack.User, chans []slack.Channel) error Users(ctx context.Context, w io.Writer, u []slack.User) error }
Formatter is a converter interface that each formatter must implement.
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON is the json formatter.
func (JSON) Conversation ¶
type Option ¶
type Option func(*options)
Option is the converter option.
func JSONIndent ¶
func JSONPrefix ¶
func TextNewMessageThreshold ¶
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func (*Text) Conversation ¶
Click to show internal directories.
Click to hide internal directories.