Categorygithub.com/adimax2953/go-tool
modulepackage
0.0.53
Repository: https://github.com/adimax2953/go-tool.git
Documentation: pkg.go.dev

# README

go-tool

Install

go get -u -v github.com/adimax2953/go-tool

File Archetecture

argtool

  • 參數檢查

bfttool

  • encrypt
    • 加解密相關
  • geo_ip
    • ip檢查

googledrivertool

  • google drive 相關功能

httptool

  • fasthttp為基底做的api client

iotool

  • 檔案操作相關

jsontool

  • 以 github.com/json-iterator/go 開發的json 加解密工具

kafkatool

  • kafka相關開發工具
  • docker-compose
    • 放docker-compose.yml

nsqtool

  • nsq相關開發工具
  • docker-compose
    • 放docker-compose.yml

rmqtool

  • rocketmq相關開發工具
  • docker-compose
    • 放docker-compose.yml

randtool

  • 基於梅森旋轉鏈(github.com/seehuhn/mt19937)開發的rng工具

Dependency

  • testify

      go get -u -v github.com/stretchr/testify
    
  • log-tool

      go get -u -v github.com/adimax2953/log-tool
    
  • rocketmq-client-go

      go get -u -v github.com/apache/rocketmq-client-go/v2
    
  • json-iterator

      go get -u -v github.com/json-iterator/go
    

# Packages

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
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

# Functions

AbsInt32 -整數轉正.
遞增字符串ByBase62.
氣泡排序Sli(小到大).
No description provided by the author
No description provided by the author
DataConvert - 資料轉換.
Decode62To10 - 62進制轉 10.
Encode10To62 - 10進制轉 62.
Float轉Str - 浮點數轉換成字符串.
GetStringEnd - 取得字串最後一碼字.
int32 slice 加總.
No description provided by the author
Int32轉str - 將整形轉換成字符串.
Int64轉str - 將整形轉換成字符串.
IntArrEq - 兩個Int arr比較是否相等.
InterfaceToString - Interface轉字串.
Int轉str - 將整形轉換成字符串.
No description provided by the author
No description provided by the author
No description provided by the author
MD5.
No description provided by the author
No description provided by the author
ParseStrToArrayInt32 - ex: 123,555 -> [123,555].
ParseStrToArrayStr - ex: "嘎抓","打妹" -> ["嘎抓","打妹"].
Percent - 取得 百分比.
region 快速排序.
No description provided by the author
No description provided by the author
去除重複資料 壓測效能優化.
RemoveSliInt - 移除slice中的某個元素(int).
RemoveSliStr - 移除slice中的某個元素(str).
RoundingFour - 四捨五入取小數四位.
RoundingSeven - 四捨五入取小數七位(後端統一).
RoundingTwo - 四捨五入取小數兩位.
SearchSliFlt - 檢查silce中有沒有此元素(float64).
SearchSliInt - 檢查silce中有沒有此元素(int).
SearchSliInt32 - 檢查silce中有沒有此元素(int32).
SearchSliInt64 - 檢查silce中有沒有此元素(int64).
SearchSliStr - 檢查silce中有沒有此元素(str).
No description provided by the author
No description provided by the author
StrToInt - 字串轉 Int.
StrToInt32 - 字串轉 Int32.
StrToInt64 - 字串轉 Int64.
TenMinutesTask - 每日排程.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
先定義隊例節點.
Timer -.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author