package
0.0.0-20240712004721-4dda8a5f2e9e
Repository: https://github.com/bad-superman/test.git
Documentation: pkg.go.dev

# Functions

Get a epoch time eg: 1521221737.376 */.
signing a message using: hmac sha256 + base64 eg: message = Pre_hash function comment secretKey = E65791902180E9EF4510DB6A77F6EBAE return signed string = TO6uwdqz+31SIPkd4I+9NiZGmVH74dXi+Fd5X0EzzSQ= */.
int convert string */.
int64 convert string */.
return decimalism string 9223372036854775807 -> "9223372036854775807" */.
No description provided by the author
Get a iso time eg: 2018-03-16T18:02:48.284Z */.
iso time change to time.Time eg: "2018-11-18T16:51:55.933Z" -> 2018-11-18 16:51:55.000000933 +0000 UTC */.
json byte array convert struct */.
json string convert struct */.
Get utc +8 -- 1540365300000 -> 2018-10-24 15:15:00 +0800 CST */.
1540365300000 -> 2018-10-24 15:15:00 */.
md5 sign */.
the pre hash string eg: timestamp = 2018-03-08T10:59:25.789Z method = POST request_path = /orders?before=2&limit=30 body = {"product_id":"BTC-USD-0309","order_id":"377454671037440"} return pre hash string = 2018-03-08T10:59:25.789ZPOST/orders?before=2&limit=30{"product_id":"BTC-USD-0309","order_id":"377454671037440"} */.
No description provided by the author
No description provided by the author
struct convert json string */.
ternary operator replace language: a == b ? c : d */.