preference options sort 🍉
This commit is contained in:
		
							parent
							
								
									2333e1d422
								
							
						
					
					
						commit
						a1fde02879
					
				|  | @ -22,6 +22,7 @@ import ( | |||
| 	"os" | ||||
| 	"os/exec" | ||||
| 	"path/filepath" | ||||
| 	"sort" | ||||
| 	"strconv" | ||||
| 	"strings" | ||||
| 	"text/template" | ||||
|  | @ -462,6 +463,8 @@ func GetEditorThemes() []string { | |||
| 		ret = append(ret, name[:strings.LastIndex(name, ".")]) | ||||
| 	} | ||||
| 
 | ||||
| 	sort.Strings(ret) | ||||
| 
 | ||||
| 	return ret | ||||
| } | ||||
| 
 | ||||
|  | @ -477,5 +480,7 @@ func GetThemes() []string { | |||
| 		ret = append(ret, name[:strings.LastIndex(name, ".")]) | ||||
| 	} | ||||
| 
 | ||||
| 	sort.Strings(ret) | ||||
| 
 | ||||
| 	return ret | ||||
| } | ||||
|  |  | |||
|  | @ -19,6 +19,7 @@ import ( | |||
| 	"encoding/json" | ||||
| 	"io/ioutil" | ||||
| 	"os" | ||||
| 	"sort" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	"github.com/golang/glog" | ||||
|  | @ -90,5 +91,7 @@ func GetLocalesNames() []string { | |||
| 		ret = append(ret, name) | ||||
| 	} | ||||
| 
 | ||||
| 	sort.Strings(ret) | ||||
| 
 | ||||
| 	return ret | ||||
| } | ||||
|  |  | |||
|  | @ -19,6 +19,7 @@ import ( | |||
| 	"path" | ||||
| 	"path/filepath" | ||||
| 	"runtime" | ||||
| 	"sort" | ||||
| 	"strings" | ||||
| ) | ||||
| 
 | ||||
|  | @ -61,6 +62,8 @@ func (*mygo) GetGoFormats() []string { | |||
| 		ret = append(ret, "goimports") | ||||
| 	} | ||||
| 
 | ||||
| 	sort.Strings(ret) | ||||
| 
 | ||||
| 	return ret | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue