MCPcopy Index your code
hub / github.com/cortexproject/cortex / isFieldRequired

Function isFieldRequired

tools/doc-generator/parser.go:485–487  ·  view source on GitHub ↗
(f reflect.StructField)

Source from the content-addressed store, hash-verified

483}
484
485func isFieldRequired(f reflect.StructField) bool {
486 return getDocTagFlag(f, "required")
487}
488
489func isFieldInline(f reflect.StructField) bool {
490 return yamlFieldInlineParser.MatchString(f.Tag.Get("yaml"))

Callers 2

parseConfigFunction · 0.85
getCustomFieldEntryFunction · 0.85

Calls 1

getDocTagFlagFunction · 0.85

Tested by

no test coverage detected