// tryParse will try parsing each column in the rows slice with multiple parsing
// routines and set the bits in canBeTypes appropriately
tryParse will try parsing each column in the rows slice with multiple parsing
routines and set the bits in canBeTypes appropriately
// tryParse will try parsing each column in the rows slice with multiple parsing // routines and set the bits in canBeTypes appropriately
func tryParse(canBeTypes []uint64, rows [][]string) {
	for _, row := range rows {
		for i, col := range row {
			if _, err := strconv.ParseBool(col); err != nil {
				canBeTypes[i] &= ^BitFlagBool
			}
			if _, err := strconv.ParseInt(col, 0, 64); err != nil {
				canBeTypes[i] &= ^BitFlagInt
			}
			if _, err := strconv.ParseFloat(col, 64); err != nil {
				canBeTypes[i] &= ^BitFlagFloat
			}
		}
	}
}
func tryParse ( canBeTypes [ ] uint64 , rows [ ] [ ] string ) { for _ , row := range rows { for i , col := range row { if _ , err := strconv . ParseBool ( col ) ; err != nil { canBeTypes [ i ] &= ^ BitFlagBool } if _ , err := strconv . ParseInt ( col , 0 , 64 ) ; err != nil { canBeTypes [ i ] &= ^ BitFlagInt } if _ , err := strconv . ParseFloat ( col , 64 ) ; err != nil { canBeTypes [ i ] &= ^ BitFlagFloat } } } }
tryParse will try parsing each column in the rows slice with multiple parsing
routines and set the bits in canBeTypes appropriately
tryParse will try parsing each column in the rows slice with multiple parsing routines and set the bits in canBeTypes appropriately