Versions in this module Expand all Collapse all v0 v0.1.1 May 4, 2022 v0.1.0 Nov 26, 2021 Changes in this version + var ErrUnsupported = errors.New("unsupported type") + func FormatTab(tw *tabwriter.Writer, f Formatter, i interface{}) (n int, err error) + func Noop(_ interface{}) (s string, err error) + type CompFormatter struct + func NewComp() *CompFormatter + func (cf *CompFormatter) SetFormatter(n string, f Formatter) + func (cf *CompFormatter) SetFormatterFunc(n string, f Func) + func (cf CompFormatter) Format(i interface{}) (string, error) + type Formatter interface + Format func(i interface{}) (string, error) + func AsTab(f Formatter) Formatter + func FromMap(sep, delim string) Formatter + func FromMapKeys(sep, delim string, ks ...reflect.Value) Formatter + func FromMapSlice(sep, delim string) Formatter + func FromMapSliceKeys(sep, delim string, ks ...reflect.Value) Formatter + func FromStruct(sep, delim string, typ reflect.Type) Formatter + func FromStructSlice(sep, delim string, typ reflect.Type) Formatter + func FromTemplate(tmpl *template.Template) Formatter + func NoopFormatter() Formatter + type Func func(i interface{}) (string, error) + func (f Func) Format(i interface{}) (string, error)