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

Method Examples

common/decls/decls.go:662–668  ·  view source on GitHub ↗

Examples returns a list of string examples for the overload.

()

Source from the content-addressed store, hash-verified

660
661// Examples returns a list of string examples for the overload.
662func (o *OverloadDecl) Examples() []string {
663 var emptySet []string
664 if o == nil || len(o.doc) == 0 {
665 return emptySet
666 }
667 return common.ParseDescriptions(o.doc)
668}
669
670// ID mirrors the overload signature and provides a unique id which may be referenced within the type-checker
671// and interpreter to optimize performance.

Callers 3

DocumentationMethod · 0.80
functionDeclToExprDeclFunction · 0.80
AddFunctionDeclsMethod · 0.80

Calls 1

ParseDescriptionsFunction · 0.92

Tested by

no test coverage detected