MCPcopy Create free account
hub / github.com/amzapi/selling-partner-api-sdk / BindStringToObject

Function BindStringToObject

pkg/runtime/bindstring.go:32–138  ·  view source on GitHub ↗

This function takes a string, and attempts to assign it to the destination interface via whatever type conversion is necessary. We have to do this via reflection instead of a much simpler type switch so that we can handle type aliases. This function was the easy way out, the better way, since we kno

(src string, dst interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

TestBindStringToObjectFunction · 0.85
BindStyledParameterFunction · 0.85
BindQueryParameterFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by 1

TestBindStringToObjectFunction · 0.68