MCPcopy Create free account
hub / github.com/imroc/req / GetType

Function GetType

internal/util/util.go:49–51  ·  view source on GitHub ↗

GetType return the underlying type.

(v any)

Source from the content-addressed store, hash-verified

47
48// GetType return the underlying type.
49func GetType(v any) reflect.Type {
50 return reflect.Indirect(reflect.ValueOf(v)).Type()
51}
52
53// CutString slices s around the first instance of sep,
54// returning the text before and after sep.

Callers 2

SetCommonErrorResultMethod · 0.92
TestGetTypeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetTypeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…