Documentation
¶
Index ¶
- func ErrorMsg(format string, args ...any)
- func Hint(format string, args ...any)
- func IsTerminal() bool
- func ProjectFields(data any, fields []string) any
- func StripMetadata(data any) any
- func Success(format string, args ...any)
- func Warn(format string, args ...any)
- func WithOptions(ctx context.Context, opts Options) context.Context
- func Write(ctx context.Context, data any) error
- func WriteJSON(data any, pretty bool) error
- func WritePlain(headers []string, rows [][]string)
- func WriteTable(headers []string, rows [][]string)
- type Mode
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
func IsTerminal() bool
func ProjectFields ¶
func StripMetadata ¶
StripMetadata unwraps Amadeus response envelopes. Strips "meta" and "dictionaries" keys, returns "data" array if present.
func WritePlain ¶
func WriteTable ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.