MCPcopy
hub / github.com/expr-lang/expr / typeAndKind

Function typeAndKind

internal/testify/assert/assertions.go:1781–1790  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

1779}
1780
1781func typeAndKind(v interface{}) (reflect.Type, reflect.Kind) {
1782 t := reflect.TypeOf(v)
1783 k := t.Kind()
1784
1785 if k == reflect.Ptr {
1786 t = t.Elem()
1787 k = t.Kind()
1788 }
1789 return t, k
1790}
1791
1792// diff returns a diff of both values as long as both are of the same type and
1793// are a struct, map, slice, array or string. Otherwise it returns an empty string.

Callers 1

diffFunction · 0.85

Calls 1

ElemMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…