Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependent ¶
func (Dependent) UndPlain ¶
func (v Dependent) UndPlain() DependentPlain
func (Dependent) UndValidate ¶
type DependentPatch ¶
type DependentPatch struct {
Foo sliceund.Und[Example] `json:",omitempty"`
Bar sliceund.Und[Example] `und:"required" json:",omitempty"`
}
func (DependentPatch) ApplyPatch ¶
func (p DependentPatch) ApplyPatch(v Dependent) Dependent
func (*DependentPatch) FromValue ¶
func (p *DependentPatch) FromValue(v Dependent)
func (DependentPatch) Merge ¶
func (p DependentPatch) Merge(r DependentPatch) DependentPatch
func (DependentPatch) ToValue ¶
func (p DependentPatch) ToValue() Dependent
type DependentPlain ¶
type DependentPlain struct {
Foo ExamplePlain
Bar ExamplePlain `und:"required"`
}
func (DependentPlain) UndRaw ¶
func (v DependentPlain) UndRaw() Dependent
type Example ¶
type Example struct {
Foo string
Bar option.Option[string] // no tag
Baz option.Option[string] `und:"def"`
Qux und.Und[string] `und:"def,und"`
Quux elastic.Elastic[string] `und:"null,len==3"`
Corge sliceund.Und[string] `und:"nullish"`
Grault sliceelastic.Elastic[string] `und:"und,len>=2,values:nonnull"`
}
func (Example) UndPlain ¶
func (v Example) UndPlain() ExamplePlain
func (Example) UndValidate ¶
type ExamplePatch ¶
type ExamplePatch struct {
Foo sliceund.Und[string] `json:",omitempty"`
Bar sliceund.Und[string] `json:",omitempty"` // no tag
Baz sliceund.Und[string] `und:"def" json:",omitempty"`
Qux und.Und[string] `und:"def,und" json:",omitzero"`
Quux elastic.Elastic[string] `und:"null,len==3" json:",omitzero"`
Corge sliceund.Und[string] `und:"nullish" json:",omitempty"`
Grault sliceelastic.Elastic[string] `und:"und,len>=2,values:nonnull" json:",omitempty"`
}
func (ExamplePatch) ApplyPatch ¶
func (p ExamplePatch) ApplyPatch(v Example) Example
func (*ExamplePatch) FromValue ¶
func (p *ExamplePatch) FromValue(v Example)
func (ExamplePatch) Merge ¶
func (p ExamplePatch) Merge(r ExamplePatch) ExamplePatch
func (ExamplePatch) ToValue ¶
func (p ExamplePatch) ToValue() Example
type ExamplePlain ¶
type ExamplePlain struct {
Foo string
Bar option.Option[string] // no tag
Baz string `und:"def"`
Qux option.Option[string] `und:"def,und"`
Quux option.Option[[3]option.Option[string]] `und:"null,len==3"`
Corge option.Option[conversion.Empty] `und:"nullish"`
Grault option.Option[[]string] `und:"und,len>=2,values:nonnull"`
}
func (ExamplePlain) UndRaw ¶
func (v ExamplePlain) UndRaw() Example
type PatchExample ¶
type PatchExamplePatch ¶
type PatchExamplePatch struct {
Foo sliceund.Und[string] `json:",omitempty"`
Bar sliceund.Und[*int] `json:",omitempty"`
Baz sliceund.Und[[]string] `json:"baz,omitempty"`
}
func (PatchExamplePatch) ApplyPatch ¶
func (p PatchExamplePatch) ApplyPatch(v PatchExample) PatchExample
func (*PatchExamplePatch) FromValue ¶
func (p *PatchExamplePatch) FromValue(v PatchExample)
func (PatchExamplePatch) Merge ¶
func (p PatchExamplePatch) Merge(r PatchExamplePatch) PatchExamplePatch
func (PatchExamplePatch) ToValue ¶
func (p PatchExamplePatch) ToValue() PatchExample
Click to show internal directories.
Click to hide internal directories.