// For convenience in unit tests.
For convenience in unit tests.
// For convenience in unit tests .
func (f *flattener) collect() (output []pair) {
	f.run(func(path string, value string, err error) {
		output = append(output, pair{path: path, value: value, err: err})
	})
	return
}
func ( f * flattener ) collect ( ) ( output [ ] pair ) { f . run ( func ( path string , value string , err error ) { output = append ( output , pair { path : path , value : value , err : err } ) } ) return }
For convenience in unit tests.
For convenience in unit tests .