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

Function withStackValue

middleware/stack_values.go:43–51  ·  view source on GitHub ↗
(parent *stackValues, key, value interface{})

Source from the content-addressed store, hash-verified

41}
42
43func withStackValue(parent *stackValues, key, value interface{}) *stackValues {
44 if key == nil {
45 panic("nil key")
46 }
47 if !reflect.TypeOf(key).Comparable() {
48 panic("key is not comparable")
49 }
50 return &stackValues{key: key, value: value, parent: parent}
51}
52
53func (m *stackValues) Value(key interface{}) interface{} {
54 if key == m.key {

Callers 1

WithStackValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected