Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrProvider ¶
AttrProvider provides Attrs from context.Context.
type AttrProviderFunc ¶
AttrProviderFunc adapts func to AttrProvider.
type Attrs ¶
Attrs wrap map of attributes.
type Option ¶
type Option func(cmt *commenter)
Option configures commenter.
func WithAttrFunc ¶
func WithAttrFunc(fn AttrProviderFunc) Option
WithAttrFunc configures commenter with AttrProviderFunc.
func WithAttrPairs ¶
WithAttrPairs configures commenter with attr pairs.
func WithAttrProvider ¶
func WithAttrProvider(prov AttrProvider) Option
WithAttrProvider configures commenter with AttrProvider.
Click to show internal directories.
Click to hide internal directories.