1 Star 0 Fork 0

ljfirst / algo-go-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
GetStatisticsMap.go 2.56 KB
一键复制 编辑 原始数据 按行查看 历史
ljfirst 提交于 2023-07-04 23:35 . feat: PriorityQueue
package common
/**
* @author ljfirst
* @version V1.0
* @date 2023/6/26 08:08
* @author-Email ljfirst@mail.ustc.edu.cn
* @blogURL https://blog.csdn.net/ljfirst
* @description
* */
type GetStatisticsMap struct {
}
func (m *GetStatisticsMap) GetMap() map[string]interface{} {
statisticsMap := make(map[string]interface{})
/*RegisterArraySort(statisticsMap)
RegisterList(statisticsMap)
RegisterCache(statisticsMap)
RegisterCalculator(statisticsMap)
RegisterHeap(statisticsMap)
RegisterReturnKMin(statisticsMap)
RegisterStack(statisticsMap)
RegisterQueue(statisticsMap)
RegisterTree(statisticsMap)
RegisterGraph(statisticsMap)*/
return statisticsMap
}
/*
func RegisterArraySort(statisticsMap map[string]interface{}) {
for _, method := range intf.ArraySortINTFAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = execMethod // map[测试对象名称][测试用例名称]
}
}
func RegisterList(statisticsMap map[string]interface{}) {
for _, method := range intf.ListAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = execMethod // map[测试对象名称][测试用例名称]
}
}
func RegisterCache(statisticsMap map[string]interface{}) {
for _, method := range intf.CacheAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = execMethod // map[测试对象名称][测试用例名称]
}
}
func RegisterCalculator(statisticsMap map[string]interface{}) {
for _, method := range intf.CacheAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = execMethod // map[测试对象名称][测试用例名称]
}
}
func RegisterHeap(statisticsMap map[string]interface{}) {
statisticsMap["GetMidNum"] = heap.GetMidNum{}
statisticsMap["WordFrequency"] = heap.WordFrequency{}
}
func RegisterStack(statisticsMap map[string]interface{}) {
for _, method := range intf.StackAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = execMethod
}
}
func RegisterQueue(statisticsMap map[string]interface{}) {
for _, method := range intf.QueueAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = execMethod
}
}
func RegisterTree(statisticsMap map[string]interface{}) {
}
func RegisterGraph(statisticsMap map[string]interface{}) {
}
func RegisterReturnKMin(statisticsMap map[string]interface{}) {
for _, method := range intf.ReturnKMinAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = method
}
}
func RegisterMinStack(statisticsMap map[string]interface{}) {
for _, method := range intf.MinStackAssemble {
execMethod := method
statisticsMap[execMethod.Tags()] = method
}
}
*/
Go
1
https://gitee.com/ljfirst/algo-go-sdk.git
git@gitee.com:ljfirst/algo-go-sdk.git
ljfirst
algo-go-sdk
algo-go-sdk
v1.0.3

搜索帮助