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

Method Get

internal/test/issues/issue193/issue.gen.go:21–26  ·  view source on GitHub ↗

Getter for additional properties for Person. Returns the specified element and whether it was found

(fieldName string)

Source from the content-addressed store, hash-verified

19// Getter for additional properties for Person. Returns the specified
20// element and whether it was found
21func (a Person) Get(fieldName string) (value interface{}, found bool) {
22 if a.AdditionalProperties != nil {
23 value, found = a.AdditionalProperties[fieldName]
24 }
25 return
26}
27
28// Setter for additional properties for Person
29func (a *Person) Set(fieldName string, value interface{}) {

Callers 15

testImplFunction · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45
ContentTypeMethod · 0.45

Calls

no outgoing calls

Tested by 15

testImplFunction · 0.36
testImplFunction · 0.36
testImplFunction · 0.36
TestParameterBindingFunction · 0.36
TestIssue518Function · 0.36
TestErrorHandlerFuncFunction · 0.36
doGetFunction · 0.36
TestPetStoreFunction · 0.36
doGetFunction · 0.36
doGetFunction · 0.36
doGetFunction · 0.36