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

Function getFieldDefault

tools/doc-generator/parser.go:501–507  ·  view source on GitHub ↗
(f reflect.StructField, fieldDefault string)

Source from the content-addressed store, hash-verified

499}
500
501func getFieldDefault(f reflect.StructField, fieldDefault string) string {
502 if defaultValue := getDocTagValue(f, "default"); defaultValue != "" {
503 return defaultValue
504 }
505
506 return fieldDefault
507}
508
509func isRootBlock(t reflect.Type) (string, string, bool) {
510 for _, rootBlock := range rootBlocks {

Callers 1

parseConfigFunction · 0.85

Calls 1

getDocTagValueFunction · 0.85

Tested by

no test coverage detected