Documentation
¶
Overview ¶
Command fieldmethods generates the field-appending methods shared by clog's *Event (event_fields.go) and core's FieldBuilder[T] (internal/core/field_builder_methods.go) from the methods spec table below, plus the output-dependent hyperlink and Dict methods shared by *Event and *Context (context_fields.go) from the outputMethods table. The method sets stay in sync by construction; methods whose semantics genuinely diverge between receivers (Duration, Err, Fraction, Percent, When) remain hand-written in event.go and field_builder.go.
Click to show internal directories.
Click to hide internal directories.