(t reflect.Type)
| 507 | } |
| 508 | |
| 509 | func isRootBlock(t reflect.Type) (string, string, bool) { |
| 510 | for _, rootBlock := range rootBlocks { |
| 511 | if t == rootBlock.structType { |
| 512 | return rootBlock.name, rootBlock.desc, true |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | return "", "", false |
| 517 | } |
| 518 | |
| 519 | func getDocTagFlag(f reflect.StructField, name string) bool { |
| 520 | cfg := parseDocTag(f) |