patchtarget

package
v0.0.0-...-5b643b5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type All

type All struct {
	Foo          string
	Bar          *int      `json:",omitempty"`
	Baz          *struct{} `json:"baz,omitempty"`
	Qux          []string
	Opt          option.Option[string] `json:"opt,omitzero"`
	Und          und.Und[string]       `json:"und"`
	Elastic      elastic.Elastic[string]
	SliceUnd     sliceund.Und[string]
	SliceElastic sliceelastic.Elastic[string]
}

type AllPatch

type AllPatch struct {
	Foo          sliceund.Und[string]         `json:",omitempty"`
	Bar          sliceund.Und[*int]           `json:",omitempty"`
	Baz          sliceund.Und[*struct{}]      `json:"baz,omitempty"`
	Qux          sliceund.Und[[]string]       `json:",omitempty"`
	Opt          sliceund.Und[string]         `json:"opt,omitempty"`
	Und          und.Und[string]              `json:"und,omitzero"`
	Elastic      elastic.Elastic[string]      `json:",omitzero"`
	SliceUnd     sliceund.Und[string]         `json:",omitempty"`
	SliceElastic sliceelastic.Elastic[string] `json:",omitempty"`
}

func (AllPatch) ApplyPatch

func (p AllPatch) ApplyPatch(v All) All

func (*AllPatch) FromValue

func (p *AllPatch) FromValue(v All)

func (AllPatch) Merge

func (p AllPatch) Merge(r AllPatch) AllPatch

func (AllPatch) ToValue

func (p AllPatch) ToValue() All

type Hmm

type Hmm struct {
	Ah Ignored
}

type HmmPatch

type HmmPatch struct {
	Ah sliceund.Und[Ignored] `json:",omitempty"`
}

func (HmmPatch) ApplyPatch

func (p HmmPatch) ApplyPatch(v Hmm) Hmm

func (*HmmPatch) FromValue

func (p *HmmPatch) FromValue(v Hmm)

func (HmmPatch) Merge

func (p HmmPatch) Merge(r HmmPatch) HmmPatch

func (HmmPatch) ToValue

func (p HmmPatch) ToValue() Hmm

type Ignored

type Ignored struct {
	Foo string
	Bar int
}

Jump to

Keyboard shortcuts

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