types

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrencyType struct {
	Name  string
	Value float64
}

Functions

func ConvertValues

func ConvertValues(d []string, typ EntityType) ([]interface{}, error)

Types

type EntityType

type EntityType int
const (
	DateTime EntityType = iota
	Id
	Time
	Date
	Ipaddress
	Money
	Rating5
	Rating10
	Rating100
	Timestamp
	Number
	Boolean
	Latitude
	Longitude
	City
	Country
	Continent
	State
	Pincode

	None
)

func DetectType

func DetectType(d []string) (EntityType, bool, error)

func (EntityType) MarshalJSON

func (t EntityType) MarshalJSON() ([]byte, error)

func (EntityType) String

func (t EntityType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL