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