Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Default timestamp format TimeStamp = "2006-01-02T15:04:05.999Z07:00" // time.RFC3339Nano )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
func WithNoColor ¶
func WithNoColor() Option
func WithPrittyPrint ¶
func WithTimestamps ¶
func WithoutTimestamps ¶
func WithoutTimestamps() Option
type Options ¶
type Options struct { // TimeStamp format layout // To disable timestamp(s) output: just leave it empty // https://pkg.go.dev/time#pkg-constants TimeStamp string // PrettyPrint indent string // To disable - leave it empty PrettyPrint string // Do NOT colorize output records. NoColor bool }
Options for encoding
func NewOptions ¶
Click to show internal directories.
Click to hide internal directories.