Documentation ¶
Index ¶
- func ConvertJsonNumberToFloat64Array(s []interface{}) ([]float64, error)
- func Merge(s ...[]interface{}) (result []interface{})
- func Parse(x interface{}) (typeName string, isPointer bool)
- func ReCallItfc(retry int, method interface{}, params ...interface{}) interface{}
- func SplitByBlockCount(all []interface{}, blockCount int) [][]interface{}
- func SplitByBlockSize(all []interface{}, blockSize int) [][]interface{}
- func Type(x interface{}) string
- type CommonFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReCallItfc ¶
func ReCallItfc(retry int, method interface{}, params ...interface{}) interface{}
*
@retry 重试次数 @method 调用的函数,比如: api.GetTicker ,注意:不是api.GetTicker(...) @params 参数,顺序一定要按照实际调用函数入参顺序一样 @return 返回
func SplitByBlockCount ¶
func SplitByBlockCount(all []interface{}, blockCount int) [][]interface{}
split all interfaces to multiple []interface that count is blockCount sample: SplitByBlockCount([1, 2, 3, 4, 5], 2) = [ [1, 2, 3], [4, 5] ]
func SplitByBlockSize ¶
func SplitByBlockSize(all []interface{}, blockSize int) [][]interface{}
split all interfaces to multiple []interface that each size <= blockSize sample: SplitByBlockSize([1, 2, 3, 4, 5], 2) = [ [1, 2], [3, 4], [5] ]
Types ¶
type CommonFunc ¶
type CommonFunc struct{}
func (*CommonFunc) Merge2 ¶
func (c *CommonFunc) Merge2(s ...[]interface{}) (result []interface{})
Click to show internal directories.
Click to hide internal directories.