Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrettyPrintContext ¶
type PrettyPrintContext struct {
PrettyPrint bool
Indentation int
BaseIndentation int
Delimiter string
Logger *logrus.Logger
}
func NewPrettyPrintContext ¶
type PrettyPrinter ¶
type PrettyPrinter struct {
// contains filtered or unexported fields
}
func NewPrettyPrinter ¶
func NewPrettyPrinter(ppCtx PrettyPrintContext) *PrettyPrinter
func (*PrettyPrinter) PrintTemplatedJSON ¶
func (pp *PrettyPrinter) PrintTemplatedJSON(body interface{}) (string, error)
func (*PrettyPrinter) RenderColumnName ¶
func (pp *PrettyPrinter) RenderColumnName(cn string) string
func (*PrettyPrinter) RenderTemplateVarAndDelimit ¶
func (pp *PrettyPrinter) RenderTemplateVarAndDelimit(tv string) string
func (*PrettyPrinter) RenderTemplateVarNoDelimit ¶
func (pp *PrettyPrinter) RenderTemplateVarNoDelimit(tv string) string
Click to show internal directories.
Click to hide internal directories.