MCPcopy Create free account
hub / github.com/apache/dubbo-go / GetOrAddPath

Method GetOrAddPath

protocol/triple/openapi/model/openapi.go:205–213  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

203}
204
205func (o *OpenAPI) GetOrAddPath(path string) *PathItem {
206 if o.Paths == nil {
207 o.Paths = make(map[string]*PathItem)
208 }
209 if _, ok := o.Paths[path]; !ok {
210 o.Paths[path] = NewPathItem()
211 }
212 return o.Paths[path]
213}

Callers 1

ResolveMethod · 0.95

Calls 1

NewPathItemFunction · 0.85

Tested by

no test coverage detected