Files is a helper function to encapsulate a number of fileValueSource together as a ValueSourceChain
(paths ...string)
| 163 | // Files is a helper function to encapsulate a number of |
| 164 | // fileValueSource together as a ValueSourceChain |
| 165 | func Files(paths ...string) ValueSourceChain { |
| 166 | vsc := ValueSourceChain{Chain: []ValueSource{}} |
| 167 | |
| 168 | for _, path := range paths { |
| 169 | vsc.Chain = append(vsc.Chain, File(path)) |
| 170 | } |
| 171 | |
| 172 | return vsc |
| 173 | } |
| 174 | |
| 175 | type mapSource struct { |
| 176 | name string |