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

Function UpdateChatsByJsonString

setting/chat.go:29–32  ·  view source on GitHub ↗
(jsonString string)

Source from the content-addressed store, hash-verified

27}
28
29func UpdateChatsByJsonString(jsonString string) error {
30 Chats = make([]map[string]string, 0)
31 return json.Unmarshal([]byte(jsonString), &Chats)
32}
33
34func Chats2JsonString() string {
35 jsonBytes, err := json.Marshal(Chats)

Callers 1

updateOptionMapFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected