MCPcopy
hub / github.com/dosco/graphjin / isJSONStringLiteral

Function isJSONStringLiteral

core/database_join.go:302–309  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

300}
301
302func isJSONStringLiteral(s string) bool {
303 if len(s) < 2 || s[0] != '"' {
304 return false
305 }
306
307 var v string
308 return json.Unmarshal([]byte(s), &v) == nil
309}
310
311func isBareGraphQLLiteral(s string) bool {
312 switch s {

Callers 2

writeGraphQLLiteralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected