MCPcopy
hub / github.com/larksuite/cli / stringFromAny

Function stringFromAny

internal/errclass/classify.go:226–229  ·  view source on GitHub ↗

stringFromAny coerces a map value to string when it is a string, returning "" otherwise.

(v any)

Source from the content-addressed store, hash-verified

224
225// stringFromAny coerces a map value to string when it is a string, returning "" otherwise.
226func stringFromAny(v any) string {
227 s, _ := v.(string)
228 return s
229}
230
231// buildConfigError enriches a typed ConfigError with the canonical
232// per-subtype recovery hint before returning it, so the wire envelope

Callers 1

buildSecurityPolicyErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected