// Check returns an error if the colType is unknown or invalid or if the name
// is blank. It returns nil otherwise
Check returns an error if the colType is unknown or invalid or if the name
is blank. It returns nil otherwise
// Check returns an error if the colType is unknown or invalid or if the name // is blank . It returns nil otherwise
func (ci ColInfo) Check() error {
	if ci.name == "" {
		return dfErrorf("The column name is invalid: it must not be blank")
	}
	if ci.colType <= ColTypeUnknown || ci.colType >= ColTypeMaxVal {
		return dfErrorf("The column type is invalid: %s", ci.colType)
	}
	return nil
}
func ( ci ColInfo ) Check ( ) error { if ci . name == " " { return dfErrorf ( " " ) } if ci . colType <= ColTypeUnknown || ci . colType >= ColTypeMaxVal { return dfErrorf ( " " , ci . colType ) } return nil }
Check returns an error if the colType is unknown or invalid or if the name
is blank.
Check returns an error if the colType is unknown or invalid or if the name is blank .