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

Method Examples

common/decls/decls.go:693–699  ·  view source on GitHub ↗

Examples returns a list of string examples for the overload.

()

Source from the content-addressed store, hash-verified

691
692// Examples returns a list of string examples for the overload.
693func (o *OverloadDecl) Examples() []string {
694 var emptySet []string
695 if o == nil || len(o.doc) == 0 {
696 return emptySet
697 }
698 return common.ParseDescriptions(o.doc)
699}
700
701// ID mirrors the overload signature and provides a unique id which may be referenced within the type-checker
702// and interpreter to optimize performance.

Callers 4

DocumentationMethod · 0.80
functionDeclToExprDeclFunction · 0.80
AddFunctionDeclsMethod · 0.80
assertFuncEqualsFunction · 0.80

Calls 1

ParseDescriptionsFunction · 0.92

Tested by 1

assertFuncEqualsFunction · 0.64