MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / UpdateGroupRatioByJSONString

Function UpdateGroupRatioByJSONString

setting/ratio_setting/group_ratio.go:56–62  ·  view source on GitHub ↗
(jsonStr string)

Source from the content-addressed store, hash-verified

54}
55
56func UpdateGroupRatioByJSONString(jsonStr string) error {
57 groupRatioMutex.Lock()
58 defer groupRatioMutex.Unlock()
59
60 groupRatio = make(map[string]float64)
61 return json.Unmarshal([]byte(jsonStr), &groupRatio)
62}
63
64func GetGroupRatio(name string) float64 {
65 groupRatioMutex.RLock()

Callers 1

updateOptionMapFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected