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

Function NewFieldDoc

common/doc.go:169–177  ·  view source on GitHub ↗

NewFieldDoc creates a new Doc struct for documenting a struct field.

(name, celType, description string, examples ...*Doc)

Source from the content-addressed store, hash-verified

167
168// NewFieldDoc creates a new Doc struct for documenting a struct field.
169func NewFieldDoc(name, celType, description string, examples ...*Doc) *Doc {
170 return &Doc{
171 Kind: DocField,
172 Name: name,
173 Type: celType,
174 Description: description,
175 Children: examples,
176 }
177}
178
179// Documentor is an interface for types that can provide their own documentation.
180type Documentor interface {

Callers 2

DocumentationMethod · 0.92
TestNewDocFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewDocFunction · 0.68