func (r *Record) Type() int {
	switch r.v.(type) {
	case int64:
		return TInteger
	case float64:
		return TReal
	}
	return TString
}
Type of record.
package tabula
import (
	"math"
	"reflect"
	"strconv"
)
const (
	TUndefined = -1
	TString = 0
	TInteger = 1
	TReal = 2
)
type Record struct {
	v interface{}
}
func NewRecord() *Record {
	return &Record{v: nil}
}
func NewRecordBy(v string, t int) (r *Record, e error) {
	r = NewRecord()
	e = r.SetValue(v, t)
	return
}
func NewRecordString(v string) (r *Record) {
	return &Record{v: v}
}
func NewRecordInt(v int64) (r *Record) {
	return &Record{v: v}
}
func NewRecordReal(v float64) (r *Record) {
	return &Record{v: v}
}
func (r *Record) Clone() *Record {
	return &Record{v: r.v}
}
func (r *Record) IsNil() bool {
	return r.v == nil
}