genmodel

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by deep-gen. DO NOT EDIT.

Package genmodel is a deep-gen'd struct holding protobuf messages, proving that generated code hands family-owned fields to the family: a one-field change to the message diffs to one operation naming that field, not a whole-message replace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doc

type Doc struct {
	Name string           `json:"name"`
	Meta *structpb.Struct `json:"meta"`
}

func (*Doc) Clone

func (t *Doc) Clone() *Doc

Clone returns a deep copy of t.

func (*Doc) Diff

func (t *Doc) Diff(other *Doc) deep.Patch[Doc]

Diff compares t with other and returns a Patch.

func (*Doc) Equal

func (t *Doc) Equal(other *Doc) bool

Equal returns true if t and other are deeply equal.

func (*Doc) Patch

func (t *Doc) Patch(p deep.Patch[Doc], logger *slog.Logger) error

Patch applies p to t using the generated fast path.

Jump to

Keyboard shortcuts

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