Documentation ¶
Index ¶
- Constants
- type JsonPrinter
- func (printer *JsonPrinter) BeginArray() error
- func (printer *JsonPrinter) BeginObject() error
- func (printer *JsonPrinter) Error() error
- func (printer *JsonPrinter) FinishArray() error
- func (printer *JsonPrinter) FinishObject() error
- func (printer *JsonPrinter) PutArray(arr []interface{}) error
- func (printer *JsonPrinter) PutFloat(v float64) error
- func (printer *JsonPrinter) PutFloatFmt(v float64, fmtstr string) error
- func (printer *JsonPrinter) PutInt(v int) error
- func (printer *JsonPrinter) PutInt64(v int64) error
- func (printer *JsonPrinter) PutKey(v string) error
- func (printer *JsonPrinter) PutObject(m map[string]interface{}) error
- func (printer *JsonPrinter) PutString(v string) error
- func (printer *JsonPrinter) Reset()
- func (printer *JsonPrinter) SetColor(color bool) error
- func (printer *JsonPrinter) SetStyle(style int) error
- func (printer *JsonPrinter) SetTermWidth(termwid int) error
- func (printer *JsonPrinter) String() (string, error)
Constants ¶
View Source
const ( SimpleStyle int = iota SmartStyle PrettyStyle )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonPrinter ¶
type JsonPrinter struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter() *JsonPrinter
func (*JsonPrinter) BeginArray ¶
func (printer *JsonPrinter) BeginArray() error
func (*JsonPrinter) BeginObject ¶
func (printer *JsonPrinter) BeginObject() error
func (*JsonPrinter) Error ¶
func (printer *JsonPrinter) Error() error
func (*JsonPrinter) FinishArray ¶
func (printer *JsonPrinter) FinishArray() error
func (*JsonPrinter) FinishObject ¶
func (printer *JsonPrinter) FinishObject() error
func (*JsonPrinter) PutArray ¶
func (printer *JsonPrinter) PutArray(arr []interface{}) error
func (*JsonPrinter) PutFloat ¶
func (printer *JsonPrinter) PutFloat(v float64) error
func (*JsonPrinter) PutFloatFmt ¶
func (printer *JsonPrinter) PutFloatFmt(v float64, fmtstr string) error
func (*JsonPrinter) PutInt ¶
func (printer *JsonPrinter) PutInt(v int) error
func (*JsonPrinter) PutInt64 ¶
func (printer *JsonPrinter) PutInt64(v int64) error
func (*JsonPrinter) PutKey ¶
func (printer *JsonPrinter) PutKey(v string) error
func (*JsonPrinter) PutObject ¶
func (printer *JsonPrinter) PutObject(m map[string]interface{}) error
func (*JsonPrinter) PutString ¶
func (printer *JsonPrinter) PutString(v string) error
func (*JsonPrinter) Reset ¶
func (printer *JsonPrinter) Reset()
func (*JsonPrinter) SetColor ¶
func (printer *JsonPrinter) SetColor(color bool) error
func (*JsonPrinter) SetStyle ¶
func (printer *JsonPrinter) SetStyle(style int) error
func (*JsonPrinter) SetTermWidth ¶
func (printer *JsonPrinter) SetTermWidth(termwid int) error
func (*JsonPrinter) String ¶
func (printer *JsonPrinter) String() (string, error)
Click to show internal directories.
Click to hide internal directories.