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

Method Description

common/decls/decls.go:973–978  ·  view source on GitHub ↗

Description returns the usage documentation for the variable, if set. Good usage instructions provide information about the valid formats, ranges, sizes for the variable type.

()

Source from the content-addressed store, hash-verified

971//
972// Good usage instructions provide information about the valid formats, ranges, sizes for the variable type.
973func (v *VariableDecl) Description() string {
974 if v == nil {
975 return ""
976 }
977 return v.doc
978}
979
980// Type returns the types.Type value associated with the variable.
981func (v *VariableDecl) Type() *types.Type {

Callers 2

TestNilVariableFunction · 0.95
DocumentationMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestNilVariableFunction · 0.76