mmh icon indicating copy to clipboard operation
mmh copied to clipboard

能不能加个参数不执行sort.Sort(css)这行代码

Open khahux opened this issue 4 years ago • 1 comments
trafficstars

func getServers() Servers {
	var servers Servers
	bss := setDefaultValue(basicConfig.Servers, basicConfig.Basic)
	sort.Sort(bss)
	servers = append(servers, bss...)
	if currentConfig.configPath != basicConfig.configPath {
		css := setDefaultValue(currentConfig.Servers, currentConfig.Basic)
                 // 看这里👀
		//sort.Sort(css)
		servers = append(servers, css...)
	}
	return servers
}

khahux avatar Mar 05 '21 10:03 khahux

可以.... 😂

mritd avatar Mar 05 '21 10:03 mritd