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

Method Examples

common/decls/decls.go:628–634  ·  view source on GitHub ↗

Examples returns a list of string examples for the overload.

()

Source from the content-addressed store, hash-verified

626
627// Examples returns a list of string examples for the overload.
628func (o *OverloadDecl) Examples() []string {
629 var emptySet []string
630 if o == nil || len(o.doc) == 0 {
631 return emptySet
632 }
633 return common.ParseDescriptions(o.doc)
634}
635
636// ID mirrors the overload signature and provides a unique id which may be referenced within the type-checker
637// 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