MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / anyToString

Function anyToString

testutil/equal_but_not_same.go:99–106  ·  view source on GitHub ↗

anyToString converts an any to a string for path building

(v any)

Source from the content-addressed store, hash-verified

97
98// anyToString converts an any to a string for path building
99func anyToString(v any) string {
100 switch val := v.(type) {
101 case string:
102 return val
103 default:
104 return reflect.ValueOf(val).String()
105 }
106}
107
108// ........-------------------============++===============+=+==+++++++++++++++++++
109// .........------------------==-=====#%%%%%%%%%#+============++==+==++++++++++++++

Callers 1

deepEqualFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected