MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NewOverloadDoc

Function NewOverloadDoc

common/doc.go:141–148  ·  view source on GitHub ↗

NewOverloadDoc creates a new Doc struct for a function example.

(id, signature string, examples ...*Doc)

Source from the content-addressed store, hash-verified

139
140// NewOverloadDoc creates a new Doc struct for a function example.
141func NewOverloadDoc(id, signature string, examples ...*Doc) *Doc {
142 return &Doc{
143 Kind: DocOverload,
144 Name: id,
145 Signature: signature,
146 Children: examples,
147 }
148}
149
150// NewMacroDoc creates a new Doc struct for documenting a macro.
151func NewMacroDoc(name, description string, examples ...*Doc) *Doc {

Callers 2

DocumentationMethod · 0.92
TestNewDocFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewDocFunction · 0.68