Versions in this module Expand all Collapse all v1 v1.0.0 Jun 15, 2026 Changes in this version + type ApplyOption func(*options) + func ExcludeFields(fields ...string) ApplyOption + func IncludeFields(fields ...string) ApplyOption + type ApplyResult struct + Object *T + Original *T + UpdatedFields []string + func (r ApplyResult[T]) Diff() []FieldDiff + type FieldDiff struct + Field string + NewValue any + OldValue any + type Patch struct + func NewPatchFromReader[T any](r io.Reader, opts ...PatchOption) (*Patch[T], error) + func NewPatch[T any](data []byte, opts ...PatchOption) (*Patch[T], error) + func (p *Patch[T]) Apply(target *T, opts ...ApplyOption) (ApplyResult[T], error) + type PatchOption func(*patchConfig) + func WithOperations() PatchOption