MCPcopy
hub / github.com/tinode/chat / isNullValue

Function isNullValue

server/utils.go:165–170  ·  view source on GitHub ↗

Check if the interface contains a string with a single Unicode Del control character.

(i any)

Source from the content-addressed store, hash-verified

163
164// Check if the interface contains a string with a single Unicode Del control character.
165func isNullValue(i any) bool {
166 if str, ok := i.(string); ok {
167 return str == nullValue
168 }
169 return false
170}
171
172func decodeStoreError(err error, id string, ts time.Time, params map[string]any) *ServerComMessage {
173 return decodeStoreErrorExplicitTs(err, id, "", ts, ts, params)

Callers 7

initTopicP2PFunction · 0.85
initTopicNewGrpFunction · 0.85
initTopicSlfFunction · 0.85
TestIsNullValueFunction · 0.85
normalizeTagsFunction · 0.85
thisUserSubMethod · 0.85
replyCreateUserFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsNullValueFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…