Documentation ¶
Index ¶
- func ConvertValues(d []string, typ EntityType) ([]interface{}, error)
- func GetDate(t1 string) (time.Time, string, error)
- func GetDateTime(t string) (time.Time, string, error)
- func GetTime(t string) (time.Time, string, error)
- func GetTimeByFormat(t string, f string) (time.Time, error)
- func IsFloat(d string) (bool, interface{})
- func IsInt(d string) (bool, interface{})
- func IsNumber(d string) (bool, interface{})
- type ByLength
- type DataTypeDetector
- type EntityType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertValues ¶
func ConvertValues(d []string, typ EntityType) ([]interface{}, error)
Types ¶
type DataTypeDetector ¶
type DataTypeDetector struct { DataType EntityType DetectorType string DetectorFunction func(string) (bool, interface{}) Attributes map[string]interface{} }
type EntityType ¶
type EntityType int
const ( DateTime EntityType = iota Id Time Date Ipaddress Money Rating5 Rating10 Rating100 Timestamp NumberInt NumberFloat Boolean Latitude Longitude City Country Continent State Pincode Content Label Alias Color Json Email Namespace Name None )
func DetectType ¶
func DetectType(d []string) (entityType EntityType, hasHeaders bool, err error)
func (EntityType) MarshalJSON ¶
func (t EntityType) MarshalJSON() ([]byte, error)
func (EntityType) String ¶
func (t EntityType) String() string
Click to show internal directories.
Click to hide internal directories.