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

Function getFieldDescription

tools/doc-generator/parser.go:493–499  ·  view source on GitHub ↗
(f reflect.StructField, fallback string)

Source from the content-addressed store, hash-verified

491}
492
493func getFieldDescription(f reflect.StructField, fallback string) string {
494 if desc := getDocTagValue(f, "description"); desc != "" {
495 return desc
496 }
497
498 return fallback
499}
500
501func getFieldDefault(f reflect.StructField, fieldDefault string) string {
502 if defaultValue := getDocTagValue(f, "default"); defaultValue != "" {

Callers 1

parseConfigFunction · 0.85

Calls 1

getDocTagValueFunction · 0.85

Tested by

no test coverage detected