MCPcopy Index your code
hub / github.com/RaymondCode/simple-demo / genChatKey

Function genChatKey

controller/message.go:64–69  ·  view source on GitHub ↗
(userIdA int64, userIdB int64)

Source from the content-addressed store, hash-verified

62}
63
64func genChatKey(userIdA int64, userIdB int64) string {
65 if userIdA > userIdB {
66 return fmt.Sprintf("%d_%d", userIdB, userIdA)
67 }
68 return fmt.Sprintf("%d_%d", userIdA, userIdB)
69}

Callers 2

MessageActionFunction · 0.85
MessageChatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected