Documentation ¶
Index ¶
- Constants
- Variables
- func Compare(a, b Value) int
- func CompareBool(d, v bool) int
- func MustBeBool(v interface{}) bool
- func MustBeFloat(v interface{}) float64
- func MustBeInt(v interface{}) int64
- func MustBeString(v interface{}) string
- func MustBeTable(v interface{}) string
- func MustBeTime(v interface{}) time.Time
- type Array
- func (_ Array) Attributes() []string
- func (a Array) Compare(v Value) int
- func (a Array) Eval(_ map[string]Value) (Value, error)
- func (_ Array) IsLogical() bool
- func (a Array) Len() int
- func (a Array) Less(i, j int) bool
- func (_ Array) ResolvedType() *types.T
- func (a Array) Size() int
- func (a Array) String() string
- func (a Array) Swap(i, j int)
- type Bool
- type Float
- type Int
- type Null
- type String
- type Table
- type Time
- type Value
Constants ¶
View Source
const (
// TimeOutputFormat is used to output all time.
TimeOutputFormat = "2006-01-02 15:04:05"
)
time.Time formats.
Variables ¶
Functions ¶
func CompareBool ¶
CompareBool compare the input bools according to the SQL comparison rules.
func MustBeBool ¶
func MustBeBool(v interface{}) bool
MustBeBool attempts to retrieve a Bool from a value, panicking if the assertion fails.
func MustBeFloat ¶
func MustBeFloat(v interface{}) float64
func MustBeInt ¶
func MustBeInt(v interface{}) int64
MustBeInt attempts to retrieve a Int from a value, panicking if the assertion fails.
func MustBeString ¶
func MustBeString(v interface{}) string
func MustBeTable ¶
func MustBeTable(v interface{}) string
func MustBeTime ¶
Types ¶
type Float ¶
type Float float64
func ParseFloat ¶
ParseFloat parses and returns the *Float value represented by the provided string, or an error if parsing is unsuccessful.
func (*Float) Attributes ¶
func (*Float) ResolvedType ¶
type Int ¶
type Int int64
func ParseInt ¶
ParseInt parses and returns the *Int value represented by the provided string, or an error if parsing is unsuccessful.
func (*Int) Attributes ¶
func (*Int) ResolvedType ¶
type Table ¶
type Table struct {
Id string
}
func (*Table) Attributes ¶
func (*Table) ResolvedType ¶
type Time ¶
func ParseTime ¶
ParseTime parses and returns the *Time value represented by the provided string in UTC, or an error if parsing is unsuccessful.
func (*Time) Attributes ¶
func (*Time) ResolvedType ¶
Click to show internal directories.
Click to hide internal directories.