mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
e5dfa17433
This gives us a convenient way to convert back to a string representation that matches what the user would've written in configuration.
13 lines
249 B
Go
13 lines
249 B
Go
package addrs
|
|
|
|
// PathAttr is the address of an attribute of the "path" object in
|
|
// the interpolation scope, like "path.module".
|
|
type PathAttr struct {
|
|
referenceable
|
|
Name string
|
|
}
|
|
|
|
func (pa PathAttr) String() string {
|
|
return "path." + pa.Name
|
|
}
|