Documentation ¶
Index ¶
- Constants
- func CMDDir() (string, error)
- func CheckAndCreatePath(p string, msg string) error
- func ConverSQLType(row []interface{}) ([]interface{}, error)
- func CreateDir(p string) error
- func DownloadFile(url string, std string) error
- func Equal(v1 interface{}, v2 interface{}) bool
- func FileAbs(filePath string) (string, error)
- func Filename(filePath string) string
- func GetBytes(data interface{}) ([]byte, error)
- func GetCrc32ByInterfaceSlice(cols []interface{}) uint32
- func GetCrc32ByStr(data string) int64
- func GetSQLStmtHearderComment(stmt *string) string
- func GetSqlStrValue(data string, wrapStr string) (string, error)
- func GetURL(url string, query string) (interface{}, error)
- func GetURLQuery(data map[string]interface{}) string
- func GetURLRaw(url string, query string) ([]byte, error)
- func GetUUID() string
- func Int64ToByte(num int64) ([]byte, error)
- func InterfaceToFloat64(val interface{}) (float64, error)
- func InterfaceToInt64(val interface{}) (int64, error)
- func InterfaceToStr(val interface{}) string
- func InterfaceToUint64(val interface{}) (uint64, error)
- func IsNull(v interface{}) bool
- func KindIntToByte(num interface{}) ([]byte, error)
- func Less(v1 interface{}, v2 interface{}) bool
- func LessEqual(v1 interface{}, v2 interface{}) bool
- func NewTime(timeStr string) (time.Time, error)
- func NotEqual(v1 interface{}, v2 interface{}) bool
- func NowTimestamp() int64
- func PathExists(p string) (bool, error)
- func PostURL(url string, data interface{}) (interface{}, error)
- func PutURL(url string, data interface{}) (interface{}, error)
- func RandRangeUint32(min, max int32) uint32
- func RandString(n int) string
- func Rather(v1 interface{}, v2 interface{}) bool
- func RatherEqual(v1 interface{}, v2 interface{}) bool
- func ReplaceSqlPlaceHolder(sqlStr string, row []interface{}, crc32 uint32, timeStr string, ...) string
- func SqlExprPlaceholderByColumns(names []string, symbol string, holder string, sep string) string
- func StrRepeat(d string, cnt int, sep string) string
- func StrTime2Int(tsStr string) (int64, error)
- func TS2String(ts int64, format string) string
- func Uint64ToByte(num uint64) ([]byte, error)
- type BoolNode
- type CalcStack
Constants ¶
View Source
const ( TIME_FORMAT = "2006-01-02 15:04:05" TIME_FORMAT_FILE_NAME = "2006_01_02_15_04_05" )
View Source
const ( UUID_LEN = 30 UUID_TIME_LEN = 24 )
Variables ¶
This section is empty.
Functions ¶
func ConverSQLType ¶
func ConverSQLType(row []interface{}) ([]interface{}, error)
将row转化为相关类型interface
func GetCrc32ByInterfaceSlice ¶
func GetCrc32ByInterfaceSlice(cols []interface{}) uint32
一共有分几片计算出 所在分片号
func GetCrc32ByStr ¶
func GetSqlStrValue ¶
data: 源数据 warpStr: 最后元数据需要使用什么包括 如: data: aabb, wrapStr: ' 最后: 'aabb'
func GetURLQuery ¶
func Int64ToByte ¶
func InterfaceToFloat64 ¶
func InterfaceToInt64 ¶
func InterfaceToStr ¶
func InterfaceToStr(val interface{}) string
func InterfaceToUint64 ¶
func KindIntToByte ¶
func NowTimestamp ¶
func NowTimestamp() int64
func RandRangeUint32 ¶
func RandString ¶
func ReplaceSqlPlaceHolder ¶
func ReplaceSqlPlaceHolder(sqlStr string, row []interface{}, crc32 uint32, timeStr string, threadId uint32) string
将row转化为相关类型interface
func SqlExprPlaceholderByColumns ¶
获取sql表达表达式, 通过字段
func StrTime2Int ¶
func Uint64ToByte ¶
Types ¶
type BoolNode ¶
func NewBoolNode ¶
type CalcStack ¶
type CalcStack struct {
// contains filtered or unexported fields
}
func NewCalcStack ¶
func NewCalcStack() *CalcStack
func (*CalcStack) PushOrCalc ¶
func (this *CalcStack) PushOrCalc(data interface{})
Click to show internal directories.
Click to hide internal directories.