MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / FromBool

Function FromBool

pkg/util/json/json.go:902–907  ·  view source on GitHub ↗

FromBool returns a JSON value given a bool.

(v bool)

Source from the content-addressed store, hash-verified

900
901// FromBool returns a JSON value given a bool.
902func FromBool(v bool) JSON {
903 if v {
904 return TrueJSONValue
905 }
906 return FalseJSONValue
907}
908
909func fromArray(v []interface{}) (JSON, error) {
910 elems := make([]JSON, len(v))

Callers 2

AsJSONFunction · 0.92
MakeJSONFunction · 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…