Include holds the result of an Include directive, including the config files that have been parsed as part of that directive. At most 5 levels of Include statements will be parsed.
| 635 | // that have been parsed as part of that directive. At most 5 levels of Include |
| 636 | // statements will be parsed. |
| 637 | type Include struct { |
| 638 | // Comment is the contents of any comment at the end of the Include |
| 639 | // statement. |
| 640 | Comment string |
| 641 | // an include directive can include several different files, and wildcards |
| 642 | directives []string |
| 643 | |
| 644 | mu sync.Mutex |
| 645 | // 1:1 mapping between matches and keys in files array; matches preserves |
| 646 | // ordering |
| 647 | matches []string |
| 648 | // actual filenames are listed here |
| 649 | files map[string]*Config |
| 650 | leadingSpace int |
| 651 | position Position |
| 652 | depth uint8 |
| 653 | hasEquals bool |
| 654 | } |
| 655 | |
| 656 | const maxRecurseDepth = 5 |
| 657 |
nothing calls this directly
no outgoing calls
no test coverage detected