MCPcopy
hub / github.com/dgraph-io/dgraph / cantConvert

Function cantConvert

types/conversion.go:723–725  ·  view source on GitHub ↗
(from TypeID, to TypeID)

Source from the content-addressed store, hash-verified

721}
722
723func cantConvert(from TypeID, to TypeID) error {
724 return errors.Errorf("Cannot convert %s to type %s", from.Name(), to.Name())
725}
726
727// MarshalJSON makes Val satisfy the json.Marshaler interface.
728func (v Val) MarshalJSON() ([]byte, error) {

Callers 2

ConvertFunction · 0.85
MarshalFunction · 0.85

Calls 2

NameMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected