Documentation ¶
Overview ¶
Package j provides abridged aliases for jettison options with some best practices built in.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MKS ¶
MKS is a multi jettison key value string option.
Usage: log.InfoCtx(ctx, "msg", j.MKS{"k1": "v1", "k2": "v2"})
func (MKS) ApplyToError ¶
func (MKS) ApplyToLog ¶
func (MKS) ContextKeys ¶
type MKV ¶
MKV is a multi jettison key value option with default formats of simple values or fmt.Stringer implementations. Complex values like slices, maps, structs are not printed since it is considered bad practice.
Usage: log.InfoCtx(ctx, "msg", j.MKV{"k1": 1, "k2": "v"})
func KV ¶
KV returns a jettison key value option the with default format of a simple value or fmt.Stringer implementation. Complex values like slices, maps, structs are not printed since it is considered bad practice.
func (MKV) ApplyToError ¶
func (MKV) ApplyToLog ¶
func (MKV) ContextKeys ¶
Click to show internal directories.
Click to hide internal directories.