Versions in this module Expand all Collapse all v0 v0.0.1 May 27, 2017 Changes in this version + const LAST_SUNDAY + func CeilDateSeconds(step float64) float64 + func CeilIn24System(input float64) float64 + func CeilIn60System(input float64) float64 + func CeilWithStep(input float64, step float64) float64 + func CmpDecimal(a bson.Decimal128, b bson.Decimal128) int + func CmpDecimalProxy(a DecimalProxy, b DecimalProxy) int + func DataToString(data interface{}) string + func DecimalToDouble(input bson.Decimal128) float64 + func DoubleToDecimal(input float64) bson.Decimal128 + func FloorWithStep(input float64, step float64) float64 + func FromDoubleTo(t string, v float64, location *time.Location) interface + func GetBSONFieldName(t interface{}, name string) string + func GetJSONFieldName(t interface{}, name string) string + func GetYAMLFieldName(t interface{}, name string) string + func HashData(input interface{}) uint32 + func InStringSlice(v string, s []string) bool + func MarshalToJSON(data interface{}) string + func MarshalToYAML(data interface{}) string + func MaxBool(a, b bool) bool + func MaxDate(a, b time.Time) time.Time + func MaxDecimal(a, b bson.Decimal128) bson.Decimal128 + func MaxDouble(a, b float64) float64 + func MaxInt(a, b int) int + func MaxInt32(a, b int32) int32 + func MaxLong(a, b int64) int64 + func MaxObjectId(a, b bson.ObjectId) bson.ObjectId + func MaxString(a, b string) string + func MaxT(t string, a interface{}, b interface{}) interface + func MaxTimestamp(a, b bson.MongoTimestamp) bson.MongoTimestamp + func MaxUInt(a, b uint) uint + func MinBool(a, b bool) bool + func MinDate(a, b time.Time) time.Time + func MinDecimal(a, b bson.Decimal128) bson.Decimal128 + func MinDouble(a, b float64) float64 + func MinInt(a, b int) int + func MinInt32(a, b int32) int32 + func MinLong(a, b int64) int64 + func MinObjectId(a, b bson.ObjectId) bson.ObjectId + func MinString(a, b string) string + func MinT(t string, a interface{}, b interface{}) interface + func MinTimestamp(a, b bson.MongoTimestamp) bson.MongoTimestamp + func MinUInt(a, b uint) uint + func ParseDate(input string) time.Time + func ParseDecimal(input string) bson.Decimal128 + func PrintData(data interface{}) + func ReadChannelToNull(ch interface{}) int + func SafeToBool(value interface{}) bool + func SafeToDate(value interface{}) time.Time + func SafeToDecimal(value interface{}) bson.Decimal128 + func SafeToDouble(value interface{}) float64 + func SafeToInt(value interface{}) int + func SafeToInt32(value interface{}) int32 + func SafeToLong(value interface{}) int64 + func SafeToObjectId(value interface{}) bson.ObjectId + func SafeToString(value interface{}) string + func SafeToTimestamp(value interface{}) bson.MongoTimestamp + func ToDouble(input interface{}) float64 + func ToUInt(input interface{}) uint + func VersionToString(version ...int) string + type DecimalProxy struct + H uint64 + L uint64 + func ToDecimalProxy(value bson.Decimal128) DecimalProxy + func (d *DecimalProxy) Exponent() int + func (d *DecimalProxy) Parts() (uint64, uint64) + func (d *DecimalProxy) Positive() int + type Timezone struct + SummerTimeOffset int + SummerTimeStartDate time.Time + SummerTimeStartMonth int + SummerTimeStartMonthDays int + SummerTimeStartSunday int + TimeZoneChanging bool + WinterTimeOffset int + WinterTimeStartDate time.Time + WinterTimeStartMonth int + WinterTimeStartMonthDays int + WinterTimeStartSunday int + func GetTimezone(location *time.Location) *Timezone