fieldmethods

command
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL