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

Function GroupGroupRatio2JSONString

setting/ratio_setting/group_ratio.go:91–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func GroupGroupRatio2JSONString() string {
92 groupGroupRatioMutex.RLock()
93 defer groupGroupRatioMutex.RUnlock()
94
95 jsonBytes, err := json.Marshal(GroupGroupRatio)
96 if err != nil {
97 common.SysError("error marshalling group-group ratio: " + err.Error())
98 }
99 return string(jsonBytes)
100}
101
102func UpdateGroupGroupRatioByJSONString(jsonStr string) error {
103 groupGroupRatioMutex.Lock()

Callers 1

InitOptionMapFunction · 0.92

Calls 2

SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected