Documentation ¶
Index ¶
- Variables
- func Compare(p1 Primary, p2 Primary, operator string, datetimeFormats []string, ...) ternary.Value
- func CompareRowValues(rowValue1 RowValue, rowValue2 RowValue, operator string, ...) (ternary.Value, error)
- func ConvertDatetimeFormat(format string) string
- func Discard(p Primary)
- func Equal(p1 Primary, p2 Primary, datetimeFormats []string, location *time.Location) ternary.Value
- func Equivalent(p1 Primary, p2 Primary, datetimeFormats []string, location *time.Location) ternary.Value
- func Float64ToStr(f float64, useScientificNotation bool) string
- func Float64ToTime(f float64, location *time.Location) time.Time
- func Greater(p1 Primary, p2 Primary, datetimeFormats []string, location *time.Location) ternary.Value
- func GreaterOrEqual(p1 Primary, p2 Primary, datetimeFormats []string, location *time.Location) ternary.Value
- func Identical(p1 Primary, p2 Primary) ternary.Value
- func Int64ToStr(i int64) string
- func IsFalse(v Primary) bool
- func IsNull(v Primary) bool
- func IsTrue(v Primary) bool
- func IsUnknown(v Primary) bool
- func Less(p1 Primary, p2 Primary, datetimeFormats []string, location *time.Location) ternary.Value
- func LessOrEqual(p1 Primary, p2 Primary, datetimeFormats []string, location *time.Location) ternary.Value
- func NotEqual(p1 Primary, p2 Primary, datetimeFormats []string, location *time.Location) ternary.Value
- func StrToTime(s string, formats []string, location *time.Location) (time.Time, bool)
- func TimeFromUnixTime(sec int64, nano int64, location *time.Location) time.Time
- type Boolean
- type ComparisonResult
- type Datetime
- type DatetimeFormatMap
- type Float
- type Integer
- type Null
- type Primary
- type RowValue
- type String
- type Ternary
Constants ¶
This section is empty.
Variables ¶
View Source
var DatetimeFormats = NewDatetimeFormatMap()
Functions ¶
func CompareRowValues ¶
func ConvertDatetimeFormat ¶
func Equivalent ¶
func Float64ToStr ¶
func GreaterOrEqual ¶
func Int64ToStr ¶
func LessOrEqual ¶
Types ¶
type ComparisonResult ¶
type ComparisonResult int
const ( IsEqual ComparisonResult = iota IsBoolEqual IsNotEqual IsLess IsGreater IsIncommensurable )
func CompareCombinedly ¶
func (ComparisonResult) String ¶
func (cr ComparisonResult) String() string
type Datetime ¶
type Datetime struct {
// contains filtered or unexported fields
}
func NewDatetime ¶
func NewDatetimeFromString ¶
type DatetimeFormatMap ¶
type DatetimeFormatMap struct {
// contains filtered or unexported fields
}
func NewDatetimeFormatMap ¶ added in v1.9.3
func NewDatetimeFormatMap() DatetimeFormatMap
func (DatetimeFormatMap) Get ¶
func (dfmap DatetimeFormatMap) Get(s string) string
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
func NewFloatFromString ¶
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func NewInteger ¶
func NewIntegerFromString ¶
type Primary ¶
func ToIntegerStrictly ¶ added in v1.17.0
type Ternary ¶
type Ternary struct {
// contains filtered or unexported fields
}
func NewTernary ¶
func NewTernaryFromString ¶
Click to show internal directories.
Click to hide internal directories.