Reduce memory copies

This commit is contained in:
skiffer-git
2022-05-22 18:28:51 +08:00
parent 2fc6b0a8cb
commit d276be9594
2 changed files with 66 additions and 2 deletions
+1
View File
@@ -124,6 +124,7 @@ func GetSwitchFromOptions(Options map[string]bool, key string) (result bool) {
}
return false
}
func SetSwitchFromOptions(options map[string]bool, key string, value bool) {
if options == nil {
options = make(map[string]bool, 5)