github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/jsonformat/differ/primitive.go (about) 1 package differ 2 3 import ( 4 "github.com/zclconf/go-cty/cty" 5 6 "github.com/hashicorp/terraform/internal/command/jsonformat/computed" 7 8 "github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers" 9 ) 10 11 func (change Change) computeAttributeDiffAsPrimitive(ctype cty.Type) computed.Diff { 12 return change.asDiff(renderers.Primitive(change.Before, change.After, ctype)) 13 }