MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / FromTest0

Method FromTest0

internal/test/any_of/param/param.gen.go:60–64  ·  view source on GitHub ↗

FromTest0 overwrites any union data inside the Test as the provided Test0

(v Test0)

Source from the content-addressed store, hash-verified

58
59// FromTest0 overwrites any union data inside the Test as the provided Test0
60func (t *Test) FromTest0(v Test0) error {
61 b, err := json.Marshal(v)
62 t.union = b
63 return err
64}
65
66// MergeTest0 performs a merge with any union data inside the Test, using the provided Test0
67func (t *Test) MergeTest0(v Test0) error {

Callers 1

TestAnyOfParameterFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestAnyOfParameterFunction · 0.64