MCPcopy Index your code
hub / github.com/ent/ent / allString

Function allString

dialect/sql/sqljson/sqljson.go:712–719  ·  view source on GitHub ↗

allString reports if the slice contains only strings.

(v []any)

Source from the content-addressed store, hash-verified

710
711// allString reports if the slice contains only strings.
712func allString(v []any) bool {
713 for i := range v {
714 if _, ok := v[i].(string); !ok {
715 return false
716 }
717 }
718 return true
719}
720
721// marshalArg stringifies the given argument to a valid JSON document.
722func marshalArg(arg any) any {

Callers 1

valueInOpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…