package
0.0.0-20240416014235-781089c0957e
Repository: https://github.com/wayneshenhh/servermodule.git
Documentation: pkg.go.dev
# Functions
BoolToInt true -> 1, false -> 0.
ColorString paint color on input string, use for std output only.
Decode 解析 websocket/mq 收到的封包
@param data 來源的原始資料
@return *DecodeResponse 解析完成的 code & payload (raw data)
@return errorcode.
Encode 將準備送出到 websocket/mq server 的訊息包裝成溝通好的格式
@param f 訊息內容
@return []byte 編碼後的位元組陣列
@return errorcode.
Genereate global unique id for tracing any request.
GenericSort sorts s in place using a comparison function.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxInt64 max of two numbers.
MinInt64 min of two numbers.
No description provided by the author
No description provided by the author
取得.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
color list.
color list.
color list.
color list.
color list.
# Structs
DecodeResponse 解析成 code & payload.
EncodeData 編碼內容,包含 code.
No description provided by the author
# Type aliases
Color const.