MCPcopy Index your code

hub / github.com/sanity-io/litter / functions

Functions61 in github.com/sanity-io/litter

↓ 32 callersMethodwrite
(b []byte)
dump.go:69
↓ 15 callersFunctionrunTestWithCfg
(t *testing.T, name string, cfg *litter.Options, cases ...interface{})
dump_test.go:281
↓ 7 callersMethoddumpType
(v reflect.Value)
dump.go:100
↓ 7 callersMethoddumpVal
(value reflect.Value)
dump.go:343
↓ 7 callersMethodindent
()
dump.go:79
↓ 7 callersMethodnewlineWithPointerNameComment
()
dump.go:85
↓ 7 callersFunctionrunTests
(t *testing.T, name string, cases ...interface{})
dump_test.go:301
↓ 7 callersMethodwriteString
(str string)
dump.go:75
↓ 5 callersMethodadd
Adds a pointer.
pointers.go:79
↓ 4 callersMethoddescendIntoPossiblePointer
(value reflect.Value, f func())
dump.go:310
↓ 4 callersFunctionisPointerValue
(v reflect.Value)
util.go:17
↓ 4 callersFunctionnewDumpState
prepares a new state object for dumping the provided value
dump.go:473
↓ 4 callersFunctionptrkeyFor
(v reflect.Value)
pointers.go:37
↓ 3 callersMethodcontains
Returns true if contains a pointer.
pointers.go:54
↓ 3 callersMethodlabel
()
pointers.go:24
↓ 3 callersFunctionprintNil
(w io.Writer)
print.go:48
↓ 2 callersMethodLen
()
dump.go:542
↓ 2 callersMethodSdump
Sdump dumps a value to a string according to the options
dump.go:525
↓ 2 callersMethoddump
(value interface{})
dump.go:299
↓ 2 callersMethoddumpCustom
(v reflect.Value, buf *bytes.Buffer)
dump.go:261
↓ 2 callersMethodpointerFor
registers that the value has been visited and checks to see if it is one of the pointers we will see multiple times. If it is, it returns a temporary
dump.go:462
↓ 2 callersFunctionprintComplex
(w io.Writer, c complex128, floatPrecision int)
print.go:34
↓ 2 callersFunctionprintFloat
(w io.Writer, val float64, precision int)
print.go:25
↓ 2 callersFunctionprintInt
(w io.Writer, val int64, base int)
print.go:17
↓ 1 callersFunctionDump
Dump a value to stdout.
dump.go:498
↓ 1 callersMethodDump
Dump a value to stdout according to the options
dump.go:513
↓ 1 callersFunctionassertEqualStringsWithDiff
(t *testing.T, expected, actual string, msgAndArgs ...interface{})
dump_test.go:330
↓ 1 callersMethodconsider
Recursively consider v and each of its children, updating the map according to the semantics of MapReusedPointers
pointers.go:106
↓ 1 callersFunctiondeInterface
deInterface returns values inside of non-nil interfaces when possible. This is useful for data types like structs, arrays, slices, and maps which can
util.go:10
↓ 1 callersFunctiondiffStrings
(t *testing.T, expected, actual string)
dump_test.go:305
↓ 1 callersMethoddumpChan
(v reflect.Value)
dump.go:255
↓ 1 callersMethoddumpFunc
(v reflect.Value)
dump.go:235
↓ 1 callersMethoddumpMap
(v reflect.Value)
dump.go:193
↓ 1 callersMethoddumpSlice
(v reflect.Value)
dump.go:113
↓ 1 callersMethoddumpStruct
(v reflect.Value)
dump.go:136
↓ 1 callersMethodget
Gets a pointer.
pointers.go:63
↓ 1 callersFunctionisZeroValue
(v reflect.Value)
util.go:25
↓ 1 callersFunctionmapReusedPointers
mapReusedPointers takes a structure, and recursively maps all pointers mentioned in the tree, detecting circular references, and providing a list of a
pointers.go:12
↓ 1 callersFunctionmessageFromMsgAndArgs
(msgAndArgs ...interface{})
dump_test.go:345
↓ 1 callersFunctionprintBool
(w io.Writer, value bool)
print.go:9
↓ 1 callersFunctionprintUint
(w io.Writer, val uint64, base int)
print.go:21
↓ 1 callersMethodput
Adds a pointer (slow path).
pointers.go:88
↓ 1 callersMethodremove
Removes a pointer.
pointers.go:72
↓ 1 callersMethodtryAddPointer
addPointer to the pointerMap, update reusedPointers. Returns true if pointer was reused
pointers.go:151
FunctionD
D dumps a value to stdout, and is a shorthand for [Dump].
dump.go:503
FunctionFunction
(string, int)
dump_test.go:19
MethodLess
(i, j int)
dump.go:550
MethodLitterDump
(w io.Writer)
dump_test.go:46
MethodLitterDump
(w io.Writer)
dump_test.go:52
MethodLitterDump
(w io.Writer)
dump.go:24
FunctionSdump
Sdump dumps a value to a string.
dump.go:508
MethodSwap
(i, j int)
dump.go:546
FunctionTestSdump_RecursiveMaps
(t *testing.T)
dump_test.go:251
FunctionTestSdump_config
(t *testing.T)
dump_test.go:143
FunctionTestSdump_customDumper
(t *testing.T)
dump_test.go:101
FunctionTestSdump_maps
(t *testing.T)
dump_test.go:233
FunctionTestSdump_multipleArgs
(t *testing.T)
dump_test.go:224
FunctionTestSdump_nilIntefacesInStructs
(t *testing.T)
dump_test.go:131
FunctionTestSdump_pointerAliasing
(t *testing.T)
dump_test.go:117
FunctionTestSdump_primitives
(t *testing.T)
dump_test.go:56
FunctionTestSdump_unexported
(t *testing.T)
dump_test.go:273