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

Method AddPath

protocol/triple/openapi/model/openapi.go:197–203  ·  view source on GitHub ↗
(path string, item *PathItem)

Source from the content-addressed store, hash-verified

195}
196
197func (o *OpenAPI) AddPath(path string, item *PathItem) *OpenAPI {
198 if o.Paths == nil {
199 o.Paths = make(map[string]*PathItem)
200 }
201 o.Paths[path] = item
202 return o
203}
204
205func (o *OpenAPI) GetOrAddPath(path string) *PathItem {
206 if o.Paths == nil {

Callers 2

Calls

no outgoing calls

Tested by 2