package
0.0.0-20240822143647-57db1c7ad6b8
Repository: https://github.com/ywjsonic/ycore.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
No description provided by the author
檢查目標陣列是否全部物件存在來源陣列內 (排除重複計算ex: source:[2], target:[2,2], return: false)
@params []T 比對來源
@params []T 比對目標
@return bool 是否包含所有物件.
檢查目標陣列是否有任一物件存在來源陣列內
@params []T 比對來源
@params []T 比對目標
@return bool 是否包含所有物件.
檢查站列是否包含目標
@params []T 比對來源
@params T 比對目標
@return bool 是否包含物件.
計算天數, 只關注日期不會在意時間
@params time.Time 開始時間
@params time.Time 結束時間
@return int 天數.
計算當月天數
@params time.Month 月份
@params int 年分
@return int 天數.
陣列使否完全相同
@params []T 比對陣列.
兩陣列是否相等
@params []T 比對來源
@params []T 比對目標
@return bool 是否相等.
@params int target @params []int source
@return int index.
No description provided by the author
從字串中取得數字.
No description provided by the author
取得目標存在於來源陣列的索引值
@params []T 索引來源
@params T 索引目標
@return int 索引值.
是否跨日.
No description provided by the author
生成新計時器
@param nowTime 當下時間 * 寫入不會做任何調整包含時區.
統一時間單位長度 13碼.
No description provided by the author
只能處理到秒數 帶入毫秒級會被處理到只剩下秒級。 帶入奈秒級會被處理到只剩下秒級。.
No description provided by the author
刪除第一次出現的目標物件
@params []T 索引列表
@params T 目標物件
@return []T 複製結果.
刪除所有目標第一次出現的物件
@params []T 索引列表
@params T 目標物件
@return []T 複製結果.
刪除索引直來源 0~n
@params source 索引列表 @params int 索引直範圍 0~n.
刪除索引直來源 1~n
@params source 索引列表 @params int 索引直範圍 1~n.
刪除索引直來源 1~n
@params source 索引列表 @params []int 索引直範圍 0~n.
移除無法顯示的 unicode.
取得當前 server 時間 *時區為 UTC+0.
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
生成亂數字串.
No description provided by the author
No description provided by the author