1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: use wakatime colors for editors and os (resolve #100)

This commit is contained in:
Ferdinand Mütsch
2021-01-30 09:51:36 +01:00
parent b732eea9b7
commit a6aff07b21
9 changed files with 366 additions and 1508 deletions

View File

@ -1,8 +1,13 @@
package config
func cloneStringMap(m map[string]string) map[string]string {
import "strings"
func cloneStringMap(m map[string]string, keysToLower bool) map[string]string {
m2 := make(map[string]string)
for k, v := range m {
if keysToLower {
k = strings.ToLower(k)
}
m2[k] = v
}
return m2