// DFRColTypes returns a function which will specify the column types
// for the DFReader to use
DFRColTypes returns a function which will specify the column types
for the DFReader to use
// DFRColTypes returns a function which will specify the column types // for the DFReader to use
func DFRColTypes(types ...ColType) DFReaderOpt {
	return func(dfr *DFReader) error {
		if len(types) == 0 {
			return ErrNoTypesGiven
		}
		if len(dfr.colTypes) != 0 {
			return ErrTypesAlreadySet
		}
		if len(dfr.colNames) != 0 && len(dfr.colNames) != len(types) {
			return dfErrorf(
				"the number of column types (%d) and names (%d) differ",
				len(types), len(dfr.colNames))
		}
		dfr.colTypes = types
		return nil
	}
}
func DFRColTypes ( types ... ColType ) DFReaderOpt { return func ( dfr * DFReader ) error { if len ( types ) == 0 { return ErrNoTypesGiven } if len ( dfr . colTypes ) != 0 { return ErrTypesAlreadySet } if len ( dfr . colNames ) != 0 && len ( dfr . colNames ) != len ( types ) { return dfErrorf ( " " , len ( types ) , len ( dfr . colNames ) ) } dfr . colTypes = types return nil } }
DFRColTypes returns a function which will specify the column types
for the DFReader to use
DFRColTypes returns a function which will specify the column types for the DFReader to use