mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
7357e7f734
The types in this package are intended to replace plan- and diff-related types from the "terraform" package, although those older types must remain for now so that they can be used to implement shims for older codepaths. type "Changes" is approximately equivalent to terraform.Diff, but renamed since it now describes whole objects before and after rather than an attribute-level diff as before. The term "diff" is now reserved for the visual rendition of the changes we'll display to the user, although rendering of this new Changes model is not yet implemented.
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
|
|
}
|