mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: concurrent access to language mappings (resolve #83)
This commit is contained in:
9
config/utils.go
Normal file
9
config/utils.go
Normal file
@ -0,0 +1,9 @@
|
||||
package config
|
||||
|
||||
func cloneStringMap(m map[string]string) map[string]string {
|
||||
m2 := make(map[string]string)
|
||||
for k, v := range m {
|
||||
m2[k] = v
|
||||
}
|
||||
return m2
|
||||
}
|
Reference in New Issue
Block a user