MCPcopy Create free account
hub / github.com/aws/smithy-go / stringify

Function stringify

middleware/stack_values.go:92–100  ·  view source on GitHub ↗

stringify tries a bit to stringify v, without using fmt, since we don't want context depending on the unicode tables. This is only used by *valueCtx.String().

(v interface{})

Source from the content-addressed store, hash-verified

90// want context depending on the unicode tables. This is only used by
91// *valueCtx.String().
92func stringify(v interface{}) string {
93 switch s := v.(type) {
94 case stringer:
95 return s.String()
96 case string:
97 return s
98 }
99 return "<not Stringer>"
100}

Callers 1

StringMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected