mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
14 lines
213 B
Go
14 lines
213 B
Go
|
package plans
|
||
|
|
||
|
import (
|
||
|
"github.com/zclconf/go-cty/cty"
|
||
|
)
|
||
|
|
||
|
func mustNewDynamicValue(val cty.Value, ty cty.Type) DynamicValue {
|
||
|
ret, err := NewDynamicValue(val, ty)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
return ret
|
||
|
}
|